-# tex/Makefile
-
depth = ..
+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)/music-drawing-routines.ps
-TEX_FILES = $(wildcard *.tex)
+include $(depth)/make/stepmake.make
-EXTRA_DIST_FILES = $(TEX_FILES) lilyponddefs.ps
+$(outdir)/music-drawing-routines.ps: $(depth)/ps/music-drawing-routines.ps
+ rm -f $@
+ -ln $< $@
-INSTALLATION_DIR=$(TEXDIR)/lilypond
-INSTALLATION_FILES=$(TEX_FILES)
+local-uninstall:
+ -rmdir $(DESTDIR)$(local_lilypond_datadir)/tex
-include $(depth)/make/stepmake.make
-include $(stepdir)/installfiles.make
+all: $(INSTALLATION_FILES)