-
Notifications
You must be signed in to change notification settings - Fork 978
/
Makefile
55 lines (45 loc) · 1.22 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
# GNU Make workspace makefile autogenerated by Premake
ifndef config
config=release
endif
ifndef verbose
SILENT = @
endif
ifeq ($(config),release)
guetzli_static_config = release
guetzli_config = release
endif
ifeq ($(config),debug)
guetzli_static_config = debug
guetzli_config = debug
endif
PROJECTS := guetzli_static guetzli
.PHONY: all clean help $(PROJECTS)
all: $(PROJECTS)
guetzli_static:
ifneq (,$(guetzli_static_config))
@echo "==== Building guetzli_static ($(guetzli_static_config)) ===="
@${MAKE} --no-print-directory -C . -f guetzli_static.make config=$(guetzli_static_config)
endif
guetzli:
ifneq (,$(guetzli_config))
@echo "==== Building guetzli ($(guetzli_config)) ===="
@${MAKE} --no-print-directory -C . -f guetzli.make config=$(guetzli_config)
endif
clean:
@${MAKE} --no-print-directory -C . -f guetzli_static.make clean
@${MAKE} --no-print-directory -C . -f guetzli.make clean
help:
@echo "Usage: make [config=name] [target]"
@echo ""
@echo "CONFIGURATIONS:"
@echo " release"
@echo " debug"
@echo ""
@echo "TARGETS:"
@echo " all (default)"
@echo " clean"
@echo " guetzli_static"
@echo " guetzli"
@echo ""
@echo "For more information, see http://industriousone.com/premake/quick-start"