]> git.donarmstrong.com Git - lilypond.git/blobdiff - tex/GNUmakefile
remove latin1.enc rules.
[lilypond.git] / tex / GNUmakefile
index 86bf7797b04cba31a546ce44723ef51b4829920f..9eca6bc5c7e3506523376ad5a3b679ec677cd390 100644 (file)
@@ -1,15 +1,27 @@
-# tex/Makefile
-
 depth = ..
 
+TEX_FILES = $(wildcard *.tex)  texinfo.cnf
+EXTRA_DIST_FILES = $(TEX_FILES) 
+STEPMAKE_TEMPLATES=install install-out
 
-TEX_FILES = $(wildcard *.tex)
+INSTALLATION_DIR=$(local_lilypond_datadir)/tex/
+INSTALLATION_FILES=$(TEX_FILES) $(outdir)/music-drawing-routines.ps
 
-EXTRA_DIST_FILES =  $(TEX_FILES) lilyponddefs.ps
+include $(depth)/make/stepmake.make
 
-INSTALLATION_DIR=$(datadir)/tex/
-INSTALLATION_FILES=$(TEX_FILES)
+$(outdir)/music-drawing-routines.ps: $(depth)/ps/music-drawing-routines.ps
+       rm -f $@
+       -ln $< $@
 
-include $(depth)/make/stepmake.make
-include $(stepdir)/installfiles.make
+
+# 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)