lilypond-0.1.57
[lilypond.git] / mi2mu / GNUmakefile
blob8e21cc5b4a6e60ddd6091871a5ccc0802ac192b9
1 # mi2mu/GNUmakefile
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.
8 # automake/wild-make should generate this file from Makefile.am.wild
10 #ugh
11 Makefile=$(wildcard Makefile)
12 # are we configured here, or are we using --srcdir
13 ifeq ($(Makefile),Makefile)
15 include Makefile
17 biltdir=.
19 else
21 #ugh
22 #ugh
23 biltdir=../../build/mi2mu
25 make-in-build: wild-check
26 exec $(MAKE) -C $(biltdir)
28 # include Makefile
29 include $(biltdir)/Makefile
31 clean: wild-check
32 exec $(MAKE) -C $(biltdir) $@
34 dist: wild-check
35 exec $(MAKE) -C $(biltdir) $@
37 distclean: wild-check
38 exec $(MAKE) -C $(biltdir) $@
40 endif
42 # Makefile.am.wild: mi2mu_SOURCES = $(wildcard *.cc)
43 CURRENT_mi2mu_SOURCES = $(wildcard *.cc)
45 wild-check: check-mi2mu-sources
47 check-mi2mu-sources:
48 ifneq ($(mi2mu_SOURCES),$(CURRENT_mi2mu_SOURCES))
49 @echo \"$(mi2mu_SOURCES)\"
50 @echo \"$(CURRENT_mi2mu_SOURCES)\"
51 @echo mi2mu_SOURCES changed: rerunning make-wild.
52 @-rm -f Makefile.am
53 $(PERL) $(top_srcdir)/bin/wild-perl < Makefile.am.wild > Makefile.am
54 endif