Makefile: reconfigure when src/*.in changes

This commit is contained in:
Wilson Snyder 2010-02-15 07:34:55 -05:00
parent 10e6f61125
commit 786c65ea5f
2 changed files with 8 additions and 13 deletions

View File

@ -344,21 +344,15 @@ install-msg:
@echo "See 'verilator.txt' for documentation."
@echo
# autoheader might not change config_build.h.in, so touch a stamp file.
IN_WILD := ${srcdir}/*.in ${srcdir}/*/*.in ${srcdir}/*/*/*.in \
*.in */*.in */*.in
IN_WILD := ${srcdir}/*.in ${srcdir}/*/*.in
${srcdir}/config_build.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.ac $(wildcard $(IN_WILD))
# autoheader might not change config_build.h.in, so touch it
${srcdir}/config_build.h: ${srcdir}/config_build.h.in configure
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in
config_build.h: stamp-h
stamp-h: config_build.h.in config.status
./config.status
Makefile: Makefile.in config.status
./config.status
src/Makefile: src/Makefile.in config.status
touch $@
Makefile: Makefile.in config.status $(IN_WILD)
./config.status
src/Makefile: src/Makefile.in Makefile
config.status: configure
./config.status --recheck
configure: configure.ac

View File

@ -122,7 +122,8 @@ and leave tabs at 8 columns, so every other indent level is a tab stop.
In Emacs, use in your ~/.emacs
(c-set-style "cc-mode")
(add-hook 'c-mode-common-hook '(lambda ()
(c-set-style "cc-mode"))))
This sets indentation to the cc-mode defaults. (Verilator predates a
CC-mode change of several years ago which overrides the defaults with GNU