summaryrefslogtreecommitdiff
path: root/src
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 /src
parent007c495239f0dc111bfc94610fb561320ec27232 (diff)
downloadfluxbox_lack-eb9161016b508bac85a89cfb50c9cb61f6106f2a.zip
fluxbox_lack-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.am24
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
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