diff options
Diffstat (limited to 'Build/source/texk/web2c/omegafonts/Makefile.am')
-rw-r--r-- | Build/source/texk/web2c/omegafonts/Makefile.am | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/Build/source/texk/web2c/omegafonts/Makefile.am b/Build/source/texk/web2c/omegafonts/Makefile.am index fb55ec6d3f7..421354c1eec 100644 --- a/Build/source/texk/web2c/omegafonts/Makefile.am +++ b/Build/source/texk/web2c/omegafonts/Makefile.am @@ -75,24 +75,28 @@ DISTCLEANFILES = pl-parser.output linked_programs = ofm2opl opl2ofm ovf2ovp ovp2ovf +bin_links = \ + omfonts$(EXEEXT):ofm2opl \ + omfonts$(EXEEXT):opl2ofm \ + omfonts$(EXEEXT):ovf2ovp \ + omfonts$(EXEEXT):ovp2ovf + +include $(top_srcdir)/../am/bin_links.am + if OTANGLE if OMFONTS -install-exec-hook: +install-exec-hook: install-bin-links if WIN32 for f in $(linked_programs); do \ $(INSTALL_PROGRAM) call_omfonts$(EXEEXT) $(DESTDIR)$(bindir)/$$f$(EXEEXT) || exit 1; \ done -else !WIN32 - cd $(DESTDIR)$(bindir) && \ - for f in $(linked_programs); do \ - rm -f $$f$(EXEEXT) && \ - $(LN_S) omfonts$(EXEEXT) $$f$(EXEEXT) || exit 1; \ - done -endif !WIN32 -uninstall-hook: +endif WIN32 +uninstall-hook: uninstall-bin-links +if WIN32 for f in $(linked_programs); do \ rm -f $(DESTDIR)$(bindir)/$$f$(EXEEXT); \ done +endif WIN32 endif OMFONTS endif OTANGLE |