gear/Makefile

48 lines
934 B
Makefile
Raw Normal View History

2024-09-16 09:15:24 +12:00
# Alternative GNU Make workspace makefile autogenerated by Premake
2024-08-17 19:12:22 +12:00
2024-09-16 09:15:24 +12:00
ifndef config
config=debug
2024-09-01 14:10:06 +12:00
endif
2024-09-16 09:15:24 +12:00
ifndef verbose
SILENT = @
2024-08-17 19:12:22 +12:00
endif
2024-09-16 09:15:24 +12:00
ifeq ($(config),debug)
gear_bin_config = debug
2024-08-17 19:12:22 +12:00
2024-09-16 09:15:24 +12:00
else ifeq ($(config),release)
gear_bin_config = release
2024-08-19 11:54:40 +12:00
2024-09-16 09:15:24 +12:00
else
$(error "invalid configuration $(config)")
endif
2024-08-17 19:12:22 +12:00
2024-09-16 09:15:24 +12:00
PROJECTS := gear-bin
2024-09-08 17:37:47 +12:00
2024-09-16 09:15:24 +12:00
.PHONY: all clean help $(PROJECTS)
2024-08-17 19:12:22 +12:00
2024-09-16 09:15:24 +12:00
all: $(PROJECTS)
2024-08-17 19:12:22 +12:00
2024-09-16 09:15:24 +12:00
gear-bin:
ifneq (,$(gear_bin_config))
@echo "==== Building gear-bin ($(gear_bin_config)) ===="
@${MAKE} --no-print-directory -C . -f gear-bin.make config=$(gear_bin_config)
endif
2024-08-17 19:12:22 +12:00
clean:
2024-09-16 09:15:24 +12:00
@${MAKE} --no-print-directory -C . -f gear-bin.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 " gear-bin"
@echo ""
@echo "For more information, see https://github.com/premake/premake-core/wiki"