Commit 6a0e87c6 authored by Jean-Claude Beaudoin's avatar Jean-Claude Beaudoin
Browse files

More refinements of dependencies.

parent 112faecd
......@@ -596,7 +596,7 @@ TAGS: lsp/*.lsp lsp/config.pre clos/*.lsp cmp/*.lsp cmp/cmpdefs.pre c/*.d c/*.h
c/makefile.depend: c/Makefile.in c/*.d c/*.h c/arch/*.d c/mkcl/mkcl.h $(MKCL_HFILES)
c/makefile.depend: c/*.d c/*.h c/arch/*.d c/mkcl/mkcl.h $(MKCL_HFILES)
cd c; $(MAKE) makefile.depend
c/GNUmakefile: c/Makefile.in c/makefile.depend
......
......@@ -184,13 +184,14 @@ Makefile: Makefile.in ../config.status
#
#
makefile.depend: $(DCFILES) cinit.c all_symbols.c mkcl/mkcl.h $(MKCL_HFILES)
makefile.depend: *.d *.h arch/*.d cinit.c all_symbols.c mkcl/mkcl.h $(MKCL_HFILES)
$(RM) makefile.depend
for i in $^; do \
case $$i in \
*.h) ;; \
*) \
$(CC) -MM $(CFLAGS) $$i >> makefile.depend;; \
*.d) $(CC) -MM $(CFLAGS) $${i%%.d}.c >> makefile.depend;; \
*.c) $(CC) -MM $(CFLAGS) $${i} >> makefile.depend;; \
*) ;; \
esac; \
done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment