diff options
author | mathias <mathias> | 2005-04-07 02:14:29 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-04-07 02:14:29 (GMT) |
commit | eb9161016b508bac85a89cfb50c9cb61f6106f2a (patch) | |
tree | ccbf317a94ba8342c40039b7fbe9dcc85eb7fac1 /src | |
parent | 007c495239f0dc111bfc94610fb561320ec27232 (diff) | |
download | fluxbox-eb9161016b508bac85a89cfb50c9cb61f6106f2a.zip fluxbox-eb9161016b508bac85a89cfb50c9cb61f6106f2a.tar.bz2 |
no need to compile default.cc for every run, so we ll check for a
change of the revision-number
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 24 |
1 files changed, 14 insertions, 10 deletions
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 | |||
35 | BUILT_SOURCES = defaults.hh | 35 | BUILT_SOURCES = defaults.hh |
36 | CONFIG_CLEAN_FILES = defaults.hh | 36 | CONFIG_CLEAN_FILES = defaults.hh |
37 | defaults.hh: Makefile | 37 | defaults.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 | ||
46 | defaults.cc: force | 47 | defaults.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 | ||
51 | force: ; | 55 | force: ; |
52 | 56 | ||