Build system: fix for Dynare++ with ctangle/cweb and dummy changelog issue

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3005 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
sebastien 2009-10-01 11:21:42 +00:00
parent e173e94839
commit 834c6002f6
6 changed files with 12 additions and 27 deletions

View File

@ -30,17 +30,12 @@ libinteg_a_CXXFLAGS = $(PTHREAD_CFLAGS)
BUILT_SOURCES = $(GENERATED_FILES)
EXTRA_DIST = main.web
EXTRA_DIST = main.web dummy.ch
dummy.ch:
touch dummy.ch
# Don't depend on dummy.ch in the following rules, otherwise make will want to rebuild from CWEB even in a tarball, since dummy.ch has a recent timestamp
%.cpp: %.cweb
%.cpp: %.cweb dummy.ch
$(CTANGLE) -bhp $< dummy.ch $@
%.h: %.hweb
%.h: %.hweb dummy.ch
$(CTANGLE) -bhp $< dummy.ch $@
if HAVE_CWEAVE
@ -56,4 +51,4 @@ endif
endif
endif
CLEANFILES = dummy.ch integ.pdf main.idx main.log main.scn main.tex main.toc
CLEANFILES = integ.pdf main.idx main.log main.scn main.tex main.toc

View File

View File

@ -58,7 +58,7 @@ libkord_a_CXXFLAGS = $(PTHREAD_CFLAGS)
BUILT_SOURCES = $(GENERATED_FILES)
EXTRA_DIST = main.web
EXTRA_DIST = main.web dummy.ch
check_PROGRAMS = tests
@ -70,15 +70,10 @@ tests_LDADD = libkord.a ../tl/cc/libtl.a ../sylv/cc/libsylv.a $(LAPACK_LIBS) $(B
check-local:
./tests
dummy.ch:
touch dummy.ch
# Don't depend on dummy.ch in the following rules, otherwise make will want to rebuild from CWEB even in a tarball, since dummy.ch has a recent timestamp
%.cpp: %.cweb
%.cpp: %.cweb dummy.ch
$(CTANGLE) -bhp $< dummy.ch $@
%.h: %.hweb
%.h: %.hweb dummy.ch
$(CTANGLE) -bhp $< dummy.ch $@
if HAVE_CWEAVE
@ -94,4 +89,4 @@ endif
endif
endif
CLEANFILES = dummy.ch kord.pdf main.idx main.log main.scn main.tex main.toc out.txt
CLEANFILES = kord.pdf main.idx main.log main.scn main.tex main.toc out.txt

0
dynare++/kord/dummy.ch Normal file
View File

View File

@ -96,17 +96,12 @@ libtl_a_CXXFLAGS = $(PTHREAD_CFLAGS)
BUILT_SOURCES = $(GENERATED_FILES)
EXTRA_DIST = main.web
EXTRA_DIST = main.web dummy.ch
dummy.ch:
touch dummy.ch
# Don't depend on dummy.ch in the following rules, otherwise make will want to rebuild from CWEB even in a tarball, since dummy.ch has a recent timestamp
%.cpp: %.cweb
%.cpp: %.cweb dummy.ch
$(CTANGLE) -bhp $< dummy.ch $@
%.h: %.hweb
%.h: %.hweb dummy.ch
$(CTANGLE) -bhp $< dummy.ch $@
if HAVE_CWEAVE
@ -122,4 +117,4 @@ endif
endif
endif
CLEANFILES = dummy.ch tl.pdf main.idx main.log main.scn main.tex main.toc
CLEANFILES = tl.pdf main.idx main.log main.scn main.tex main.toc

0
dynare++/tl/cc/dummy.ch Normal file
View File