diff options
Diffstat (limited to 'src/Makefile.am')
-rw-r--r-- | src/Makefile.am | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 0f3395e..f66ddc9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -28,6 +28,8 @@ DEFAULT_MENU=@DEFAULT_MENU@ | |||
28 | DEFAULT_STYLE=$(pkgdatadir)/styles/Clean | 28 | DEFAULT_STYLE=$(pkgdatadir)/styles/Clean |
29 | DEFAULT_KEYSFILE=@DEFAULT_KEYS@ | 29 | DEFAULT_KEYSFILE=@DEFAULT_KEYS@ |
30 | DEFAULT_INITFILE=@DEFAULT_INIT@ | 30 | DEFAULT_INITFILE=@DEFAULT_INIT@ |
31 | PROGRAM_PREFIX=@program_prefix@ | ||
32 | PROGRAM_SUFFIX=@program_suffix@ | ||
31 | 33 | ||
32 | AM_CPPFLAGS=-I$(srcdir)/FbTk | 34 | AM_CPPFLAGS=-I$(srcdir)/FbTk |
33 | 35 | ||
@@ -37,14 +39,25 @@ CONFIG_CLEAN_FILES = defaults.hh | |||
37 | defaults.hh: Makefile | 39 | defaults.hh: Makefile |
38 | @( \ | 40 | @( \ |
39 | echo '// This file is generated from Makefile. Do not edit!'; \ | 41 | echo '// This file is generated from Makefile. Do not edit!'; \ |
42 | echo '#include <string>'; \ | ||
43 | echo ''; \ | ||
40 | echo '#define DEFAULTMENU "$(DEFAULT_MENU)"'; \ | 44 | echo '#define DEFAULTMENU "$(DEFAULT_MENU)"'; \ |
41 | echo '#define DEFAULTSTYLE "$(DEFAULT_STYLE)"'; \ | 45 | echo '#define DEFAULTSTYLE "$(DEFAULT_STYLE)"'; \ |
42 | echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"'; \ | 46 | echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"'; \ |
43 | echo '#define DEFAULT_INITFILE "$(DEFAULT_INITFILE)"'; \ | 47 | echo '#define DEFAULT_INITFILE "$(DEFAULT_INITFILE)"'; \ |
48 | echo '#define PROGRAM_PREFIX "$(PROGRAM_PREFIX:NONE=)"'; \ | ||
49 | echo '#define PROGRAM_SUFFIX "$(PROGRAM_SUFFIX:NONE=)"'; \ | ||
50 | echo 'std::string realProgramName(std::string name);'; \ | ||
44 | echo 'const char* svnversion(void);' ) > defaults.hh | 51 | echo 'const char* svnversion(void);' ) > defaults.hh |
45 | 52 | ||
46 | defaults.cc: force | 53 | defaults.cc: force |
47 | @( \ | 54 | @( \ |
55 | echo '#include "defaults.hh"'; \ | ||
56 | echo ''; \ | ||
57 | echo 'std::string realProgramName(std::string name) {'; \ | ||
58 | echo ' return PROGRAM_PREFIX + name + PROGRAM_SUFFIX;'; \ | ||
59 | echo '}'; \ | ||
60 | echo ''; \ | ||
48 | echo 'const char* svnversion(void) {'; \ | 61 | echo 'const char* svnversion(void) {'; \ |
49 | echo ' return "'`(svnversion . | sed "s/[^0-9].*//") 2> /dev/null`'";';\ | 62 | echo ' return "'`(svnversion . | sed "s/[^0-9].*//") 2> /dev/null`'";';\ |
50 | echo '}' ) > defaults_tmp.cc | 63 | echo '}' ) > defaults_tmp.cc |