diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-31 09:47:04 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-05-31 09:47:04 +0000 |
commit | 15cca88e2666b7aae4e54112a21cb5c9bc312069 (patch) | |
tree | 8b31517b2e92f03da2b949831029cd9439ce7cef /Build/source/texk/web2c/omegafonts/Makefile.in | |
parent | 18662309a8be07470a0bc6294a1fddf5ffcb8d72 (diff) |
Use the Makefile fragment `bin_links.am' to create symlinks within $(bindir)
For cygwin always create links `foo->bar.exe' and not `foo.exe->bar.exe'
git-svn-id: svn://tug.org/texlive/trunk@22701 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/omegafonts/Makefile.in')
-rw-r--r-- | Build/source/texk/web2c/omegafonts/Makefile.in | 47 |
1 files changed, 33 insertions, 14 deletions
diff --git a/Build/source/texk/web2c/omegafonts/Makefile.in b/Build/source/texk/web2c/omegafonts/Makefile.in index 46d408141ce..f02ddb56a89 100644 --- a/Build/source/texk/web2c/omegafonts/Makefile.in +++ b/Build/source/texk/web2c/omegafonts/Makefile.in @@ -39,9 +39,10 @@ bin_PROGRAMS = $(am__EXEEXT_1) @OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_TRUE@noinst_PROGRAMS = \ @OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_TRUE@ call_omfonts$(EXEEXT) EXTRA_PROGRAMS = omfonts$(EXEEXT) +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(top_srcdir)/../am/bin_links.am ChangeLog pl-lexer.c \ + pl-parser.c pl-parser.h subdir = omegafonts -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in ChangeLog \ - pl-lexer.c pl-parser.c pl-parser.h ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/web2c-disable.m4 \ $(top_srcdir)/../../m4/kpse-asm.m4 \ @@ -371,6 +372,12 @@ DISTCLEANFILES = pl-parser.output tests/charwdr.* tests/charwdv.* \ tests/specialhex.ofm tests/specialhex.opl tests/specialhex.ovf \ tests/xspecialhex.* linked_programs = ofm2opl opl2ofm ovf2ovp ovp2ovf +bin_links = \ + omfonts$(EXEEXT):ofm2opl \ + omfonts$(EXEEXT):opl2ofm \ + omfonts$(EXEEXT):ovf2ovp \ + omfonts$(EXEEXT):ovp2ovf + OMFONTS_tests = charwd.test level1.test omfonts.test repeat.test specialhex.test @OMFONTS_TRUE@@OTANGLE_TRUE@TESTS = $(OMFONTS_tests) EXTRA_DIST = $(OMFONTS_tests) tests/charwd-r.pl tests/charwd-v.vpl \ @@ -380,7 +387,7 @@ all: all-am .SUFFIXES: .SUFFIXES: .c .l .lo .o .obj .y -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(top_srcdir)/../am/bin_links.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ @@ -856,20 +863,32 @@ $(proglib): ${top_srcdir}/lib/*.c cd ../lib && $(MAKE) $(AM_MAKEFLAGS) @KPATHSEA_RULE@ - -@OMFONTS_TRUE@@OTANGLE_TRUE@install-exec-hook: +.PHONY: install-bin-links uninstall-bin-links + +install-bin-links: +@WIN32_FALSE@ @cd $(DESTDIR)$(bindir) && \ +@WIN32_FALSE@ for s in $(bin_links); do \ +@WIN32_FALSE@ link=`echo $$s | sed 's,.*:,,'`; \ +@WIN32_FALSE@ file=`echo $$s | sed 's,:.*,,'`; \ +@WIN32_FALSE@ rm -f $$link; \ +@WIN32_FALSE@ echo "creating link '$$link' -> '$$file'"; \ +@WIN32_FALSE@ $(LN_S) $$file $$link || exit 1; \ +@WIN32_FALSE@ done + +uninstall-bin-links: +@WIN32_FALSE@ @for s in $(bin_links); do \ +@WIN32_FALSE@ link=`echo $$s | sed 's,.*:,,'`; \ +@WIN32_FALSE@ rm -f $(DESTDIR)$(bindir)/$$link; \ +@WIN32_FALSE@ done + +@OMFONTS_TRUE@@OTANGLE_TRUE@install-exec-hook: install-bin-links @OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_TRUE@ for f in $(linked_programs); do \ @OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_TRUE@ $(INSTALL_PROGRAM) call_omfonts$(EXEEXT) $(DESTDIR)$(bindir)/$$f$(EXEEXT) || exit 1; \ @OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_TRUE@ done -@OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_FALSE@ cd $(DESTDIR)$(bindir) && \ -@OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_FALSE@ for f in $(linked_programs); do \ -@OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_FALSE@ rm -f $$f$(EXEEXT) && \ -@OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_FALSE@ $(LN_S) omfonts$(EXEEXT) $$f$(EXEEXT) || exit 1; \ -@OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_FALSE@ done -@OMFONTS_TRUE@@OTANGLE_TRUE@uninstall-hook: -@OMFONTS_TRUE@@OTANGLE_TRUE@ for f in $(linked_programs); do \ -@OMFONTS_TRUE@@OTANGLE_TRUE@ rm -f $(DESTDIR)$(bindir)/$$f$(EXEEXT); \ -@OMFONTS_TRUE@@OTANGLE_TRUE@ done +@OMFONTS_TRUE@@OTANGLE_TRUE@uninstall-hook: uninstall-bin-links +@OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_TRUE@ for f in $(linked_programs); do \ +@OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_TRUE@ rm -f $(DESTDIR)$(bindir)/$$f$(EXEEXT); \ +@OMFONTS_TRUE@@OTANGLE_TRUE@@WIN32_TRUE@ done # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. |