]> git.donarmstrong.com Git - lilypond.git/blob - mi2mu/GNUmakefile
partial: 0.1.57.jcn
[lilypond.git] / mi2mu / GNUmakefile
1 # mi2mu/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 #ugh
23 biltdir=../../build/mi2mu
24
25 make-in-build: wild-check
26         exec $(MAKE) -C $(biltdir)
27
28 # include Makefile
29 include $(biltdir)/Makefile
30
31 clean: wild-check
32         exec $(MAKE) -C $(biltdir) $@
33
34 dist: wild-check
35         exec $(MAKE) -C $(biltdir) $@
36
37 distclean: wild-check
38         exec $(MAKE) -C $(biltdir) $@
39
40 endif
41
42 # Makefile.am.wild: mi2mu_SOURCES = $(wildcard *.cc)
43 CURRENT_mi2mu_SOURCES = $(wildcard *.cc)
44
45 wild-check: check-mi2mu-sources
46
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
55