diff options
author | mathias <mathias> | 2005-02-03 16:46:46 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-02-03 16:46:46 (GMT) |
commit | b7bf873aa0512c672a36cad852ebd6742ffaf681 (patch) | |
tree | a26f695388914816e9fd0202271b64acda04d58b /src/Makefile.am | |
parent | a88dcb3676aaf3ab3186ba1c2fb95f02e105d819 (diff) | |
download | fluxbox_pavel-b7bf873aa0512c672a36cad852ebd6742ffaf681.zip fluxbox_pavel-b7bf873aa0512c672a36cad852ebd6742ffaf681.tar.bz2 |
fixes the year for fluxbox -version
added a way to display the svn-revision-number in fluxbox -info
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index e6f7dad..243cb1d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -41,11 +41,20 @@ defaults.hh: Makefile | |||
41 | echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"' >> defaults.hh | 41 | echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"' >> defaults.hh |
42 | echo '#define DEFAULT_INITFILE "$(pkgdatadir)/init"' >> defaults.hh | 42 | echo '#define DEFAULT_INITFILE "$(pkgdatadir)/init"' >> defaults.hh |
43 | echo '#define LOCALEPATH "$(pkgdatadir)/nls"' >> defaults.hh | 43 | echo '#define LOCALEPATH "$(pkgdatadir)/nls"' >> defaults.hh |
44 | echo 'const char* svnversion(void);' >> defaults.hh | ||
44 | 45 | ||
45 | # an extra dep for fluxbox | 46 | defaults.cc: force |
47 | echo 'const char* svnversion(void) {' > defaults.cc | ||
48 | echo ' return "'`(svnversion . | sed "s/[^0-9].*//") 2> /dev/null`'";' >> defaults.cc | ||
49 | echo '}' >> defaults.cc | ||
50 | |||
51 | force: ; | ||
46 | 52 | ||
53 | # an extra dep for fluxbox | ||
47 | fluxbox.$(OBJEXT): defaults.hh | 54 | fluxbox.$(OBJEXT): defaults.hh |
48 | 55 | ||
56 | |||
57 | |||
49 | if NEWWMSPEC | 58 | if NEWWMSPEC |
50 | newwmspec_SOURCE= Ewmh.hh Ewmh.cc | 59 | newwmspec_SOURCE= Ewmh.hh Ewmh.cc |
51 | endif | 60 | endif |
@@ -120,4 +129,4 @@ fluxbox_SOURCES = AtomHandler.hh ArrowButton.hh ArrowButton.cc \ | |||
120 | ${REMEMBER_SOURCE} ${REGEXP_SOURCE} ${TOOLBAR_SOURCE} | 129 | ${REMEMBER_SOURCE} ${REGEXP_SOURCE} ${TOOLBAR_SOURCE} |
121 | 130 | ||
122 | 131 | ||
123 | LDADD=FbTk/libFbTk.a | 132 | LDADD=FbTk/libFbTk.a defaults.$(OBJEXT) |