]> git.donarmstrong.com Git - lilypond.git/blobdiff - lib/Makefile
release: 0.1.7
[lilypond.git] / lib / Makefile
index 1fbb2d83c27b1022761e7321b0ae083389cd9faa..9538b989aee0ba33619c93bdc755fc300df6472c 100644 (file)
@@ -52,7 +52,7 @@ LOADLIBES +=
 # MAINTARGET = $(bindir)/$(EXECUTABLE)# huh?
 MAINTARGET = $(outdir)/$(LIBRARY)# huh?
 
-default: $(MAINTARGET)
+default: configheader $(MAINTARGET)
 #
 
 localclean:
@@ -68,3 +68,10 @@ include ./$(depth)/make/Rules.make
 -include $(DEPFILES)
 #
 
+.PHONY: configheader
+
+configheader: $(outdir)/config.hh
+
+# Ugh ugh
+$(outdir)/config.hh: config.hh.in
+       sed 's!@datadir@!$(datadir)!'<  $< > $@