summaryrefslogtreecommitdiff
path: root/core/makefile
diff options
context:
space:
mode:
authorruki <[email protected]>2019-07-28 20:09:51 +0800
committerruki <[email protected]>2019-07-28 20:10:39 +0800
commit1bb412afcd5d416bec002ea882b797499e60417c (patch)
tree6690846fdf737a4bfa93396820d498686852b8ef /core/makefile
parent29552afd90275c4a1cafc58cd39463afafe830f8 (diff)
improve makefile
Diffstat (limited to 'core/makefile')
-rw-r--r--core/makefile16
1 files changed, 8 insertions, 8 deletions
diff --git a/core/makefile b/core/makefile
index cf14faee7..bf865c66f 100644
--- a/core/makefile
+++ b/core/makefile
@@ -36,9 +36,9 @@ endif
# make all
all : .null
- @echo "" > /tmp/$(PRO_NAME).out
+ @echo "" > $(TMP_DIR)/$(PRO_NAME).out
@echo make $(PRO_NAME)
- @$(MAKE) --no-print-directory -C $(SRC_DIR) || cat /tmp/$(PRO_NAME).out
+ @$(MAKE) --no-print-directory -C $(SRC_DIR) || cat $(TMP_DIR)/$(PRO_NAME).out
# make rebuild
rebuild : .null
@@ -48,7 +48,7 @@ rebuild : .null
# make install
install : .null
- @echo "" > /tmp/$(PRO_NAME).out
+ @echo "" > $(TMP_DIR)/$(PRO_NAME).out
@echo install $(PRO_NAME)
@$(MAKE) --no-print-directory -C $(SRC_DIR)
@$(MAKE) --no-print-directory -C $(SRC_DIR) install
@@ -59,13 +59,13 @@ lipo : .null
# make clean
clean : .null
- @echo "" > /tmp/$(PRO_NAME).out
+ @echo "" > $(TMP_DIR)/$(PRO_NAME).out
@echo clean $(PRO_NAME)
@$(MAKE) --no-print-directory -C $(SRC_DIR) clean
# make update
update : .null
- @echo "" > /tmp/$(PRO_NAME).out
+ @echo "" > $(TMP_DIR)/$(PRO_NAME).out
@echo update $(PRO_NAME)
@$(MAKE) --no-print-directory -C $(SRC_DIR) update
@$(MAKE) --no-print-directory -C $(SRC_DIR)
@@ -74,17 +74,17 @@ update : .null
# make output
output : .null
@echo output $(PRO_NAME)
- @cat /tmp/$(PRO_NAME).out
+ @cat $(TMP_DIR)/$(PRO_NAME).out
# make error
error : .null
@echo error $(PRO_NAME)
- @cat /tmp/$(PRO_NAME).out | egrep -i "error|undefined|cannot|错误" | cat
+ @cat $(TMP_DIR)/$(PRO_NAME).out | egrep -i "error|undefined|cannot|错误" | cat
# make warning
warning : .null
@echo warning $(PRO_NAME)
- @cat /tmp/$(PRO_NAME).out | egrep warning
+ @cat $(TMP_DIR)/$(PRO_NAME).out | egrep warning
# make doc
doc : .null