summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorpacien2017-12-09 02:48:14 +0100
committerpacien2017-12-09 02:48:14 +0100
commit7beb6bfadb504f8d1d7c1d069986e9eb9cd32673 (patch)
tree373a3f4b37336a671d872926dfe3c02f5e45eb85 /makefile
parentf910579e66a1495c4c1c97e2b99ea178d9d194ee (diff)
downloadmorpher-7beb6bfadb504f8d1d7c1d069986e9eb9cd32673.tar.gz
Rename phony targets
Signed-off-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'makefile')
-rw-r--r--makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/makefile b/makefile
index eba11f6..33706f3 100644
--- a/makefile
+++ b/makefile
@@ -18,15 +18,15 @@ PERCENT := %
18 18
19 19
20##### MAIN TARGETS 20##### MAIN TARGETS
21.PHONY: all test source report clean 21.PHONY: all check build report clean
22 22
23all: source test api-doc report; 23all: build check api-doc report;
24 24
25.SECONDEXPANSION: 25.SECONDEXPANSION:
26source: $$(patsubst $(SRC_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).o,$$(wildcard $(SRC_DIR)/**/*.c)); 26build: $$(patsubst $(SRC_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).o,$$(wildcard $(SRC_DIR)/**/*.c));
27 27
28.SECONDEXPANSION: 28.SECONDEXPANSION:
29test: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wildcard $(TEST_DIR)/**/*.c)); 29check: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wildcard $(TEST_DIR)/**/*.c));
30 30
31report: $(DOC_DIR)/project-report.pdf; 31report: $(DOC_DIR)/project-report.pdf;
32 32
@@ -42,7 +42,7 @@ $(BIN_DIR)/%.o: $$(patsubst $(BIN_DIR)/$$(PERCENT).o,$(SRC_DIR)/$$(PERCENT).c,$$
42 $(CC) $(CFLAGS) $(IFLAGS) -c $< -o $@ 42 $(CC) $(CFLAGS) $(IFLAGS) -c $< -o $@
43 43
44.SECONDEXPANSION: 44.SECONDEXPANSION:
45$(BIN_DIR)/%.test: $$(patsubst $(BIN_DIR)/$$(PERCENT).test,$(TEST_DIR)/$$(PERCENT).c,$$@) source | $$(@D)/ 45$(BIN_DIR)/%.test: $$(patsubst $(BIN_DIR)/$$(PERCENT).test,$(TEST_DIR)/$$(PERCENT).c,$$@) build | $$(@D)/
46 $(CC) $(CFLAGS) $(IFLAGS) $(BIN_DIR)/**/*.o $< -o $@ $(LFLAGS) 46 $(CC) $(CFLAGS) $(IFLAGS) $(BIN_DIR)/**/*.o $< -o $@ $(LFLAGS)
47 ./$@ 47 ./$@
48 48