]> git.donarmstrong.com Git - lilypond.git/blobdiff - tex/GNUmakefile
*** empty log message ***
[lilypond.git] / tex / GNUmakefile
index 1c1bf5c221bf316f5adeadb02c04b4a55d10148f..239f4f8f9be7496eef4162ae0b36948cd6070361 100644 (file)
@@ -1,12 +1,15 @@
 depth = ..
 
-TEX_FILES = $(wildcard *.tex)  
-
-EXTRA_DIST_FILES = $(TEX_FILES) latin1.enc
-STEPMAKE_TEMPLATES=install
+TEX_FILES = $(wildcard *.tex)  texinfo.cnf
+EXTRA_DIST_FILES = $(TEX_FILES) 
+STEPMAKE_TEMPLATES=install install-out
 
 INSTALLATION_DIR=$(local_lilypond_datadir)/tex/
-INSTALLATION_FILES=$(TEX_FILES) $(outdir)/latin1.enc  $(outdir)/music-drawing-routines.ps
+INSTALLATION_FILES=$(TEX_FILES) $(outdir)/music-drawing-routines.ps
+
+INSTALLATION_OUT_SUFFIXES=1
+INSTALLATION_OUT_DIR1=$(local_lilypond_datadir)/fonts/enc
+INSTALLATION_OUT_FILES1=$(outdir)/latin1.enc
 
 include $(depth)/make/stepmake.make
 
@@ -14,8 +17,22 @@ $(outdir)/music-drawing-routines.ps: $(depth)/ps/music-drawing-routines.ps
        rm -f $@
        -ln $< $@
 
-$(outdir)/latin1.enc: latin1.enc
-       rm -f $@
-       -ln $< $@
+$(outdir)/latin1.enc: GNUmakefile
+       echo '/ISOLatin1Encoding' > $@.orig
+       echo 'ISOLatin1Encoding pstack' \
+         | gs -sDEVICE=nullpage  -quiet - 2>> $@.orig
+       echo 'def' >> $@.orig
+       sed 's|/minus|/hyphen|' < $@.orig > $@
+
+
+# teTeX-2.0.x compatibility.
+local-install:
+       -$(INSTALL) -d $(DESTDIR)$(local_lilypond_datadir)/tex
+       (cd $(DESTDIR)$(local_lilypond_datadir)/tex && ln -sf ../fonts/enc .)
+
+local-uninstall:
+       -rm -f $(DESTDIR)$(local_lilypond_datadir)/tex/enc
+       -rmdir $(DESTDIR)$(local_lilypond_datadir)/tex
+
+all: $(INSTALLATION_FILES) $(INSTALLATION_OUT_FILES1)
 
-all: $(INSTALLATION_FILES)