diff options
author | Joshua Haberman <jhaberman@gmail.com> | 2011-08-20 18:55:25 -0700 |
---|---|---|
committer | Joshua Haberman <jhaberman@gmail.com> | 2011-08-20 18:55:25 -0700 |
commit | 6c6013e51e196c54df4f0f7db78e31dab59e2bc5 (patch) | |
tree | c74bdcd154fd6c87aba3bd339e472538309f973e /Makefile | |
parent | adb6580d9728c3533faf779812bd7f4c9b27170d (diff) |
Fold gen-deps.sh into Makefile.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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. ############################################################### |