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
11 Makefile=$(wildcard Makefile)
12 # are we configured here, or are we using --srcdir
13 ifeq ($(Makefile),Makefile)
23 biltdir=../../build/mi2mu
25 make-in-build: wild-check
26 exec $(MAKE) -C $(biltdir)
29 include $(biltdir)/Makefile
32 exec $(MAKE) -C $(biltdir) $@
35 exec $(MAKE) -C $(biltdir) $@
38 exec $(MAKE) -C $(biltdir) $@
42 # Makefile.am.wild: mi2mu_SOURCES = $(wildcard *.cc)
43 CURRENT_mi2mu_SOURCES = $(wildcard *.cc)
45 wild-check: 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.
53 $(PERL) $(top_srcdir)/bin/wild-perl < Makefile.am.wild > Makefile.am