diff options
| author | Holger Dengler <dengler@linutronix.de> | 2018-04-19 16:18:38 +0200 |
|---|---|---|
| committer | John Ogness <john.ogness@linutronix.de> | 2018-04-19 22:19:56 +0200 |
| commit | b9c47deaa48d17be573f036ce4c53d829ccf58dd (patch) | |
| tree | f0879b5808d8f25cc54ef90b47419fe221c083a9 /modules.mk | |
| parent | 3a9e6ae3993f3809e2bd5faa8ccb36896d3cb01b (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.mk | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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) |
