-# -*-Makefile-*-
-# specific srcdir makefile for LilyPond
-
-depth=.
-
-# Don't try to outsmart us, you puny computer!
-ifeq (0,${MAKELEVEL})
- MAKE:=$(MAKE) --no-builtin-rules
-endif
-
-# Use alternate configurations alongside eachother:
-#
-# ./configure --enable-configsuffix=debug
-# make conf=debug
-#
-# uses config-debug.make and config-debug.h; output goes to out-debug.
-#
-ifdef conf
- CONFIGSUFFIX=-$(conf)
-endif
-
-# Use same configurations, but different output directory:
-#
-# make out=WWW
-#
-# uses config.make and config.h; output goes to out-WWW.
-#
-ifdef out
- outbase=out-$(out)
-else
- outbase=out$(CONFIGSUFFIX)
-endif
-
-config = config$(CONFIGSUFFIX).make
-
-include $(config)
-
-export SRCMAKE=$(MAKE) -C $(srcdir) -f GNUmakefile.in builddir=$(builddir)
-
-default: all
-
-%:
- $(SRCMAKE) $@
-
-web:
- $(SRCMAKE) out=www WWW
- $(SRCMAKE) out=www WWW-post
-
-web-install:
- $(SRCMAKE) out=www install-WWW
-
-install:
- $(SRCMAKE) install
- $(SRCMAKE) final-install