aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGirts Folkmanis <girtsf@users.noreply.github.com>2016-11-21 19:39:31 -0800
committerTravis Geiselbrecht <geist@foobox.com>2016-12-11 14:37:12 -0800
commit65019cc3918e50ad29e5f0fff4b4bbe54f3c50d1 (patch)
tree5f017ca883e88df50650c1f9dbef2ff34a9c0d7d
parent1332d188cbe5bea82821f0853c5eb601710e5e4e (diff)
downloadcommon-65019cc3918e50ad29e5f0fff4b4bbe54f3c50d1.tar.gz
[build] add deps for srcfiles.txt and include_paths.txt
Without the dependencies, the files get written once and don't get updated when include paths or source files change.
-rw-r--r--make/build.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/make/build.mk b/make/build.mk
index bebb39d0..7c0e9130 100644
--- a/make/build.mk
+++ b/make/build.mk
@@ -50,11 +50,11 @@ $(OUTELF).size: $(OUTELF)
$(NOECHO)$(NM) -S --size-sort $< > $@
# print some information about the build
-$(BUILDDIR)/srcfiles.txt:
+$(BUILDDIR)/srcfiles.txt: $(OUTELF)
@echo generating $@
$(NOECHO)echo $(sort $(ALLSRCS)) | tr ' ' '\n' > $@
-$(BUILDDIR)/include_paths.txt:
+$(BUILDDIR)/include_paths.txt: $(OUTELF)
@echo generating $@
$(NOECHO)echo $(subst -I,,$(sort $(GLOBAL_INCLUDES))) | tr ' ' '\n' > $@