]> git.donarmstrong.com Git - lilypond.git/blob - test/GNUmakefile
release: 0.1.54
[lilypond.git] / test / GNUmakefile
1 # test/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 #ugh
22 biltdir=../flowertest
23
24 make-in-build: wild-check
25         exec $(MAKE) -C $(biltdir)
26
27 # include Makefile
28 include $(biltdir)/Makefile
29
30 endif
31
32 # Makefile.am.wild: TEST_SCRIPTS = $(wildcard *.sh)
33 CURRENT_TEST_SCRIPTS = $(wildcard *.sh)
34
35 wild-check: check-test-scripts
36
37 check-test-scripts:
38 ifneq ($(TEST_SCRIPTS),$(CURRENT_TEST_SCRIPTS))
39         @echo \"$(TEST_SCRIPTS)\"
40         @echo \"$(CURRENT_TEST_SCRIPTS)\"
41         @echo  TEST_SCRIPTS changed: rerunning make-wild.
42         @-rm -f Makefile.am
43         $(PERL) $(top_srcdir)/bin/wild-perl < Makefile.am.wild > Makefile.am
44 endif
45