diff options
author | Adam NAILI | 2017-12-10 11:37:22 +0100 |
---|---|---|
committer | Adam NAILI | 2017-12-10 11:37:22 +0100 |
commit | 14808ee3083f788fd84c898632407c4d4b4e50d8 (patch) | |
tree | 784bed8f4b8dae5e0b8933e08ddbb4a4c4253b79 /makefile | |
parent | 16b67f89eccc78ed6d04f889cae8c2e5c2a3b49d (diff) | |
parent | 7beb6bfadb504f8d1d7c1d069986e9eb9cd32673 (diff) | |
download | morpher-14808ee3083f788fd84c898632407c4d4b4e50d8.tar.gz |
Merge remote-tracking branch 'origin/master' into gui
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 | ||
23 | all: source test api-doc report; | 23 | all: build check api-doc report; |
24 | 24 | ||
25 | .SECONDEXPANSION: | 25 | .SECONDEXPANSION: |
26 | source: $$(patsubst $(SRC_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).o,$$(wildcard $(SRC_DIR)/**/*.c)); | 26 | build: $$(patsubst $(SRC_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).o,$$(wildcard $(SRC_DIR)/**/*.c)); |
27 | 27 | ||
28 | .SECONDEXPANSION: | 28 | .SECONDEXPANSION: |
29 | test: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wildcard $(TEST_DIR)/**/*.c)); | 29 | check: $$(patsubst $(TEST_DIR)/$$(PERCENT).c,$(BIN_DIR)/$$(PERCENT).test,$$(wildcard $(TEST_DIR)/**/*.c)); |
30 | 30 | ||
31 | report: $(DOC_DIR)/project-report.pdf; | 31 | report: $(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 | ||
@@ -57,9 +57,9 @@ clean-bin: | |||
57 | .PHONY: api-doc clean-api-doc | 57 | .PHONY: api-doc clean-api-doc |
58 | 58 | ||
59 | api-doc: | 59 | api-doc: |
60 | $(eval TMPDIR := $(shell mktemp -d)) | 60 | naturaldocs --project $(DOC_DIR)/gen/ --output HTML $(DOC_DIR)/api/ \ |
61 | naturaldocs --project $(TMPDIR) --input $(INCLUDE_DIR) --input $(DOC_DIR)/topics/ --output HTML $(DOC_DIR)/api/ | 61 | --input $(INCLUDE_DIR) --input $(DOC_DIR)/topics/ |
62 | $(RM) -r $(TMPDIR) | 62 | $(RM) $(DOC_DIR)/gen/Menu.txt |
63 | 63 | ||
64 | clean-api-doc: | 64 | clean-api-doc: |
65 | $(RM) -r $(DOC_DIR)/api/* | 65 | $(RM) -r $(DOC_DIR)/api/* |