-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rules.mk
57 lines (42 loc) · 984 Bytes
/
Rules.mk
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
CHECK := $(CHECK)
# Subdirectories, in random order
dir := buddy
include $(dir)/Rules.mk
dir := store
include $(dir)/Rules.mk
dir := deps
include $(dir)/Rules.mk
dir := common
include $(dir)/Rules.mk
dir := controller
include $(dir)/Rules.mk
dir := uptop
include $(dir)/Rules.mk
dir := util
include $(dir)/Rules.mk
dir := api
include $(dir)/Rules.mk
DEPS_LEFTOVERS=*/*.dSYM
CLEAN := $(CLEAN) $(TGT_BIN) $(TGT_LIB) $(TGT_DEPS) $(CHECK)
# The variables TGT_*, CHECK, CLEAN and CMD_INST* may be added to by the Makefile
# fragments in the various subdirectories.
# The variables
.PHONY: targets
targets: $(TGT_BIN) $(TGT_SBIN) $(TGT_ETC) $(TGT_LIB)
.PHONY: clean
clean:
rm -f $(CLEAN)
rm -rf $(DEPS_LEFTOVERS)
check: $(CHECK)
prove $(CHECK)
t-files:
echo $(CHECK)
install:
# Prevent make from removing any build targets, including intermediate ones
.SECONDARY: $(CLEAN)
.t.tap:
(echo '#!/bin/cat'; exec $<) > $@
echo-%:
echo $* $($*)
.c.o:
$(COMP)