# Alternative GNU Make workspace makefile autogenerated by Premake ifndef config config=debug endif ifndef verbose SILENT = @ endif ifeq ($(config),debug) gearlib_config = debug test_config = debug else ifeq ($(config),release) gearlib_config = release test_config = release else $(error "invalid configuration $(config)") endif PROJECTS := gearlib test .PHONY: all clean help $(PROJECTS) all: $(PROJECTS) gearlib: ifneq (,$(gearlib_config)) @echo "==== Building gearlib ($(gearlib_config)) ====" @${MAKE} --no-print-directory -C . -f gearlib.make config=$(gearlib_config) endif test: gearlib ifneq (,$(test_config)) @echo "==== Building test ($(test_config)) ====" @${MAKE} --no-print-directory -C . -f test.make config=$(test_config) endif clean: @${MAKE} --no-print-directory -C . -f gearlib.make clean @${MAKE} --no-print-directory -C . -f test.make clean help: @echo "Usage: make [config=name] [target]" @echo "" @echo "CONFIGURATIONS:" @echo " debug" @echo " release" @echo "" @echo "TARGETS:" @echo " all (default)" @echo " clean" @echo " gearlib" @echo " test" @echo "" @echo "For more information, see https://github.com/premake/premake-core/wiki"