From eb9161016b508bac85a89cfb50c9cb61f6106f2a Mon Sep 17 00:00:00 2001 From: mathias Date: Thu, 7 Apr 2005 02:14:29 +0000 Subject: no need to compile default.cc for every run, so we ll check for a change of the revision-number --- ChangeLog | 4 ++++ src/Makefile.am | 24 ++++++++++++++---------- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3ca9965..9c19f48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ (Format: Year/Month/Day) Changes for 0.9.13 +*05/04/07: + * Minor tweak for the buildsystem so it doesnt compile + defaults.cc every time (Mathias) + src/Makefile.am *05/04/03: * Tidy up some redundant pixmap allocations (Simon) Menu.cc TextButton.cc FbPixmap.hh diff --git a/src/Makefile.am b/src/Makefile.am index eb81f3d..6631587 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -35,18 +35,22 @@ bin_PROGRAMS= fluxbox BUILT_SOURCES = defaults.hh CONFIG_CLEAN_FILES = defaults.hh defaults.hh: Makefile - echo '// This file is generated from makefile. Do not edit!' > defaults.hh - echo '#define DEFAULTMENU "$(DEFAULT_MENU)"' >> defaults.hh - echo '#define DEFAULTSTYLE "$(DEFAULT_STYLE)"' >> defaults.hh - echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"' >> defaults.hh - echo '#define DEFAULT_INITFILE "$(DEFAULT_INITFILE)"' >> defaults.hh - echo '#define LOCALEPATH "$(pkgdatadir)/nls"' >> defaults.hh - echo 'const char* svnversion(void);' >> defaults.hh + @( \ + echo '// This file is generated from Makefile. Do not edit!'; \ + echo '#define DEFAULTMENU "$(DEFAULT_MENU)"'; \ + echo '#define DEFAULTSTYLE "$(DEFAULT_STYLE)"'; \ + echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"'; \ + echo '#define DEFAULT_INITFILE "$(DEFAULT_INITFILE)"'; \ + echo '#define LOCALEPATH "$(pkgdatadir)/nls"'; \ + echo 'const char* svnversion(void);' ) > defaults.hh defaults.cc: force - echo 'const char* svnversion(void) {' > defaults.cc - echo ' return "'`(svnversion . | sed "s/[^0-9].*//") 2> /dev/null`'";' >> defaults.cc - echo '}' >> defaults.cc + @( \ + echo 'const char* svnversion(void) {'; \ + echo ' return "'`(svnversion . | sed "s/[^0-9].*//") 2> /dev/null`'";';\ + echo '}' ) > defaults_tmp.cc + @if ! cmp defaults_tmp.cc defaults.cc ; then cp defaults_tmp.cc defaults.cc; fi + @rm defaults_tmp.cc force: ; -- cgit v0.11.2