]> git.donarmstrong.com Git - lilypond.git/blob - flower/GNUmakefile
release: 0.1.54
[lilypond.git] / flower / GNUmakefile
1 # flower/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=../../build/flower
23
24 make-in-build: wild-check
25         exec $(MAKE) -C $(biltdir)
26
27 # include Makefile
28 include $(biltdir)/Makefile
29
30 clean: wild-check
31         exec $(MAKE) -C $(biltdir) $@
32
33 dist: wild-check
34         exec $(MAKE) -C $(biltdir) $@
35
36 distclean: wild-check
37         exec $(MAKE) -C $(biltdir) $@
38
39 endif
40
41 # Makefile.am.wild: libflower_la_SOURCES = $(wildcard *.cc)
42 CURRENT_libflower_la_SOURCES = $(wildcard *.cc)
43
44 wild-check: check-flower-la-sources
45
46 check-flower-la-sources:
47 ifneq ($(libflower_la_SOURCES),$(CURRENT_libflower_la_SOURCES))
48         @echo \"$(libflower_la_SOURCES)\"
49         @echo \"$(CURRENT_libflower_la_SOURCES)\"
50         @echo  libflower_la_SOURCES changed: rerunning make-wild.
51         @-rm -f Makefile.am
52         $(PERL) $(top_srcdir)/bin/wild-perl < Makefile.am.wild > Makefile.am
53 endif
54