]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/GNUmakefile
release: 0.1.53
[lilypond.git] / lily / include / GNUmakefile
1 # lily/include/GNUmakefile
2 #
3 # This file helps maintainers to keep their Makefile.am automatically
4 # up to date using GNU make features.
5 # If you don't have (or run) GNU make, Makefile.am will not be updated
6 # automatically when source files are added/removed.
7
8 # automake/wild-make should generate this file from Makefile.am.wild
9
10 #ugh
11 Makefile=$(wildcard Makefile)
12 # are we configured here, or are we using --srcdir
13 ifeq ($(Makefile),Makefile)
14
15 include Makefile
16
17 biltdir=.
18
19 else
20
21 biltdir=../../../build/lily/include
22
23 # include Makefile
24 include $(biltdir)/Makefile
25
26 endif
27
28 # Makefile.am.wild: noinst_HEADERS = $(wildcard *.hh *.icc *.tcc)
29 CURRENT_noinst_HEADERS = $(wildcard *.hh *.icc *.tcc)
30
31 wild-check: check-noinst-headers
32
33
34 check-noinst-headers:
35 ifneq ($(noinst_HEADERS),$(CURRENT_noinst_HEADERS))
36         @echo \"$(noinst_HEADERS)\"
37         @echo \"$(CURRENT_noinst_HEADERS)\"
38         @echo  noinst_HEADERS changed: rerunning make-wild.
39         @-rm -f Makefile.am
40         $(PERL) $(top_srcdir)/bin/wild-perl < Makefile.am.wild > Makefile.am
41 endif
42