summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2011-08-20 18:55:25 -0700
committerJoshua Haberman <jhaberman@gmail.com>2011-08-20 18:55:25 -0700
commit6c6013e51e196c54df4f0f7db78e31dab59e2bc5 (patch)
treec74bdcd154fd6c87aba3bd339e472538309f973e /Makefile
parentadb6580d9728c3533faf779812bd7f4c9b27170d (diff)
Fold gen-deps.sh into Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index f929caf..4be4155 100644
--- a/Makefile
+++ b/Makefile
@@ -66,9 +66,13 @@ endif
# of the scheme we use that compiles the same source file multiple times with
# different -D options, which can include different header files.
ALLSRC=$(shell find . -name '*.c' -print | grep -v perf-tmp)
-deps: gen-deps.sh Makefile $(ALLSRC)
- $(Q) CPPFLAGS="$(CPPFLAGS)" ./gen-deps.sh $(ALLSRC)
+deps: Makefile $(ALLSRC)
$(E) Regenerating dependencies for upb/...
+ @set -e
+ @rm -f deps
+ @for file in $(ALLSRC); do \
+ gcc -MM $$file -MT $${file%.*}.o $(CPPFLAGS) -I. >> deps; \
+ done
# Source files. ###############################################################
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback