From 786c65ea5f12f774e0ec10e350bd1cd86f77e545 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 15 Feb 2010 07:34:55 -0500 Subject: [PATCH] Makefile: reconfigure when src/*.in changes --- Makefile.in | 18 ++++++------------ internals.pod | 3 ++- 2 files changed, 8 insertions(+), 13 deletions(-) diff --git a/Makefile.in b/Makefile.in index 39f94a415..8065d44b8 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 diff --git a/internals.pod b/internals.pod index 617a23345..a04b35463 100644 --- a/internals.pod +++ b/internals.pod @@ -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