]> git.donarmstrong.com Git - lilypond.git/blob - flowertest/GNUmakefile
c588cc6fbc157ec7e59a73585a8bac0abf28e17a
[lilypond.git] / flowertest / GNUmakefile
1 # flowertest/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
11 #ugh
12 Makefile=$(wildcard Makefile)
13 # are we configured here, or are we using --srcdir
14 ifeq ($(Makefile),Makefile)
15
16 include Makefile
17
18 biltdir=.
19
20 else
21
22 #ugh
23 biltdir=../flowertest
24
25 make-in-build: wild-check
26         exec $(MAKE) -C $(biltdir)
27
28 # include Makefile
29 include $(biltdir)/Makefile
30
31 endif
32
33 # Makefile.am.wild: test_SOURCES = $(wildcard *.cc)
34 CURRENT_test_SOURCES = $(wildcard *.cc)
35 # Makefile.am.wild: noinst_HEADERS = $(wildcard *.hh)
36 CURRENT_noinst_HEADERS = $(wildcard *.hh)
37
38 wild-check: check-extra-sources check-noinst-headers
39
40 check-test-sources:
41 ifneq ($(test_SOURCES),$(CURRENT_test_SOURCES))
42         @echo \"$(test_SOURCES)\"
43         @echo \"$(CURRENT_test_SOURCES)\"
44         @echo  test_SOURCES changed: rerunning make-wild.
45         @-rm -f Makefile.am
46         $(PERL) $(top_srcdir)/bin/wild-perl < Makefile.am.wild > Makefile.am
47 endif
48
49 check-noinst-headers:
50 ifneq ($(noinst_HEADERS),$(CURRENT_noinst_HEADERS))
51         @echo \"$(noinst_HEADERS)\"
52         @echo \"$(CURRENT_noinst_HEADERS)\"
53         @echo  noinst_HEADERS changed: rerunning make-wild.
54         @-rm -f Makefile.am
55         $(PERL) $(top_srcdir)/bin/wild-perl < Makefile.am.wild > Makefile.am
56 endif
57
58 all: