summaryrefslogtreecommitdiff
path: root/modules.mk
diff options
context:
space:
mode:
authorHolger Dengler <dengler@linutronix.de>2018-04-19 16:18:38 +0200
committerJohn Ogness <john.ogness@linutronix.de>2018-04-19 22:19:56 +0200
commitb9c47deaa48d17be573f036ce4c53d829ccf58dd (patch)
treef0879b5808d8f25cc54ef90b47419fe221c083a9 /modules.mk
parent3a9e6ae3993f3809e2bd5faa8ccb36896d3cb01b (diff)
build: cleanup PHONY targets
Use a variable for the PHONY targets. This makes it easier and robust to maintain this list. Signed-off-by: Holger Dengler <dengler@linutronix.de>
Diffstat (limited to 'modules.mk')
-rw-r--r--modules.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules.mk b/modules.mk
index 110a1e0..d3ea784 100644
--- a/modules.mk
+++ b/modules.mk
@@ -1,11 +1,13 @@
#Include all selected obj-y files from folder
include Makefile
+PHONY :=
BASE_NAME = $(shell basename $(dir $(CURDIR)))
TMP_TEXFILES = *.aux *.log *.nav *.toc *.pdf *.snm \
*.bbl *.blg *.out *.vrb *.fls *.fdb_latexmk
+PHONY += build
build:
$(Q)$(foreach files,$(obj-y),$(MODMK) $(files);)
$(Q)$(foreach files,$(obj-y),cp -t $(DEPLOY) $(files);)
@@ -27,7 +29,8 @@ buildprintouts:
%.tex:
+PHONY += clean_texfiles
clean_texfiles:
$(Q)rm -f $(TMP_TEXFILES)
-.PHONY: clean_texfiles build
+.PHONY: $(PHONY)