X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=mi2mu%2FGNUmakefile;h=8e21cc5b4a6e60ddd6091871a5ccc0802ac192b9;hb=77add406027ae5afda409a2e77b35852c5fae4f9;hp=de251bbe42b5aa0fdcff2e08f3669c8bd7142070;hpb=1ff8f1c7e0baac008490e9e62995df70e0ed5128;p=lilypond.git diff --git a/mi2mu/GNUmakefile b/mi2mu/GNUmakefile index de251bbe42..8e21cc5b4a 100644 --- a/mi2mu/GNUmakefile +++ b/mi2mu/GNUmakefile @@ -7,23 +7,49 @@ # automake/wild-make should generate this file from Makefile.am.wild +#ugh +Makefile=$(wildcard Makefile) +# are we configured here, or are we using --srcdir +ifeq ($(Makefile),Makefile) + include Makefile +biltdir=. + +else + +#ugh +#ugh +biltdir=../../build/mi2mu + +make-in-build: wild-check + exec $(MAKE) -C $(biltdir) + +# include Makefile +include $(biltdir)/Makefile + +clean: wild-check + exec $(MAKE) -C $(biltdir) $@ + +dist: wild-check + exec $(MAKE) -C $(biltdir) $@ + +distclean: wild-check + exec $(MAKE) -C $(biltdir) $@ + +endif + # Makefile.am.wild: mi2mu_SOURCES = $(wildcard *.cc) CURRENT_mi2mu_SOURCES = $(wildcard *.cc) -# ugh: there is a dummy file 'wild-check' to satisfy the wild-check target -# for non-GNU makes in Makefile(.test) -# but we'll ignore that -# .PHONY: wild-check - wild-check: check-mi2mu-sources check-mi2mu-sources: ifneq ($(mi2mu_SOURCES),$(CURRENT_mi2mu_SOURCES)) @echo \"$(mi2mu_SOURCES)\" @echo \"$(CURRENT_mi2mu_SOURCES)\" - @echo mi2mu_SOURCES changed: NOT yet rerunning make-wild. Please type: - @echo "$(PERL) $(top_srcdir)/bin/wild-perl < Makefile.am.wild > Makefile.am" + @echo mi2mu_SOURCES changed: rerunning make-wild. + @-rm -f Makefile.am + $(PERL) $(top_srcdir)/bin/wild-perl < Makefile.am.wild > Makefile.am endif