aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathias <mathias>2005-04-07 02:14:29 (GMT)
committermathias <mathias>2005-04-07 02:14:29 (GMT)
commiteb9161016b508bac85a89cfb50c9cb61f6106f2a (patch)
treeccbf317a94ba8342c40039b7fbe9dcc85eb7fac1
parent007c495239f0dc111bfc94610fb561320ec27232 (diff)
downloadfluxbox_paul-eb9161016b508bac85a89cfb50c9cb61f6106f2a.zip
fluxbox_paul-eb9161016b508bac85a89cfb50c9cb61f6106f2a.tar.bz2
no need to compile default.cc for every run, so we ll check for a
change of the revision-number
-rw-r--r--ChangeLog4
-rw-r--r--src/Makefile.am24
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 @@
1(Format: Year/Month/Day) 1(Format: Year/Month/Day)
2Changes for 0.9.13 2Changes for 0.9.13
3*05/04/07:
4 * Minor tweak for the buildsystem so it doesnt compile
5 defaults.cc every time (Mathias)
6 src/Makefile.am
3*05/04/03: 7*05/04/03:
4 * Tidy up some redundant pixmap allocations (Simon) 8 * Tidy up some redundant pixmap allocations (Simon)
5 Menu.cc TextButton.cc FbPixmap.hh 9 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
35BUILT_SOURCES = defaults.hh 35BUILT_SOURCES = defaults.hh
36CONFIG_CLEAN_FILES = defaults.hh 36CONFIG_CLEAN_FILES = defaults.hh
37defaults.hh: Makefile 37defaults.hh: Makefile
38 echo '// This file is generated from makefile. Do not edit!' > defaults.hh 38 @( \
39 echo '#define DEFAULTMENU "$(DEFAULT_MENU)"' >> defaults.hh 39 echo '// This file is generated from Makefile. Do not edit!'; \
40 echo '#define DEFAULTSTYLE "$(DEFAULT_STYLE)"' >> defaults.hh 40 echo '#define DEFAULTMENU "$(DEFAULT_MENU)"'; \
41 echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"' >> defaults.hh 41 echo '#define DEFAULTSTYLE "$(DEFAULT_STYLE)"'; \
42 echo '#define DEFAULT_INITFILE "$(DEFAULT_INITFILE)"' >> defaults.hh 42 echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"'; \
43 echo '#define LOCALEPATH "$(pkgdatadir)/nls"' >> defaults.hh 43 echo '#define DEFAULT_INITFILE "$(DEFAULT_INITFILE)"'; \
44 echo 'const char* svnversion(void);' >> defaults.hh 44 echo '#define LOCALEPATH "$(pkgdatadir)/nls"'; \
45 echo 'const char* svnversion(void);' ) > defaults.hh
45 46
46defaults.cc: force 47defaults.cc: force
47 echo 'const char* svnversion(void) {' > defaults.cc 48 @( \
48 echo ' return "'`(svnversion . | sed "s/[^0-9].*//") 2> /dev/null`'";' >> defaults.cc 49 echo 'const char* svnversion(void) {'; \
49 echo '}' >> defaults.cc 50 echo ' return "'`(svnversion . | sed "s/[^0-9].*//") 2> /dev/null`'";';\
51 echo '}' ) > defaults_tmp.cc
52 @if ! cmp defaults_tmp.cc defaults.cc ; then cp defaults_tmp.cc defaults.cc; fi
53 @rm defaults_tmp.cc
50 54
51force: ; 55force: ;
52 56