-
Notifications
You must be signed in to change notification settings - Fork 17
/
Makefile
60 lines (50 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# GNU Make workspace makefile autogenerated by Premake
ifndef config
config=debug
endif
ifndef verbose
SILENT = @
endif
ifeq ($(config),debug)
lib_config = debug
test_config = debug
endif
ifeq ($(config),release)
lib_config = release
test_config = release
endif
ifeq ($(config),test)
lib_config = test
test_config = test
endif
PROJECTS := lib test
.PHONY: all clean help $(PROJECTS)
all: $(PROJECTS)
lib:
ifneq (,$(lib_config))
@echo "==== Building lib ($(lib_config)) ===="
@${MAKE} --no-print-directory -C build/gmake -f lib.make config=$(lib_config)
endif
test: lib
ifneq (,$(test_config))
@echo "==== Building test ($(test_config)) ===="
@${MAKE} --no-print-directory -C build/gmake -f test.make config=$(test_config)
endif
clean:
@${MAKE} --no-print-directory -C build/gmake -f lib.make clean
@${MAKE} --no-print-directory -C build/gmake -f test.make clean
help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " debug"
@echo " release"
@echo " test"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " lib"
@echo " test"
@echo ""
@echo "For more information, see http://industriousone.com/premake/quick-start"