diff options
-rw-r--r-- | src/Makefile.am | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index 412a2e8..b4c4ce8 100644 --- a/src/Makefile.am +++ b/src/Makefile.am | |||
@@ -29,16 +29,22 @@ DEFAULT_STYLE=$(pkgdatadir)/styles/Clean | |||
29 | DEFAULT_KEYSFILE=$(pkgdatadir)/keys | 29 | DEFAULT_KEYSFILE=$(pkgdatadir)/keys |
30 | DEFAULT_INITFILE= | 30 | DEFAULT_INITFILE= |
31 | 31 | ||
32 | AM_CPPFLAGS= -Wall @CPPFLAGS@ \ | 32 | AM_CPPFLAGS= -Wall @CPPFLAGS@ -IFbTk |
33 | -DLOCALEPATH=\"$(pkgdatadir)/nls\" \ | ||
34 | -DDEFAULTMENU=\"$(DEFAULT_MENU)\" \ | ||
35 | -DDEFAULTSTYLE=\"$(DEFAULT_STYLE)\" \ | ||
36 | -DDEFAULTKEYSFILE=\"$(DEFAULT_KEYSFILE)\"\ | ||
37 | -DDEFAULT_INITFILE=\"$(pkgdatadir)/init\"\ | ||
38 | -IFbTk | ||
39 | 33 | ||
40 | bin_PROGRAMS= fluxbox | 34 | bin_PROGRAMS= fluxbox |
35 | BUILT_SOURCES = defaults.hh | ||
36 | defaults.hh: Makefile | ||
37 | echo '// This file is generated from makefile. Do not edit!' > defaults.hh | ||
38 | echo '#define DEFAULTMENU "$(DEFAULTMENU)"' >> defaults.hh | ||
39 | echo '#define DEFAULTSTYLE "$(DEFAULT_STYLE)"' >> defaults.hh | ||
40 | echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"' >> defaults.hh | ||
41 | echo '#define DEFAULT_INITFILE "$(pkgdatadir)/init"' >> defaults.hh | ||
42 | echo '#define LOCALEPATH "$(pkgdatadir)/nls"' >> defaults.hh | ||
41 | 43 | ||
44 | # some extra deps for I18n and fluxbox | ||
45 | |||
46 | I18n.$(OBJEXT): defaults.hh | ||
47 | fluxbox.$(OBJEXT): defaults.hh | ||
42 | 48 | ||
43 | if NEWWMSPEC | 49 | if NEWWMSPEC |
44 | newwmspec_SOURCE= Ewmh.hh Ewmh.cc | 50 | newwmspec_SOURCE= Ewmh.hh Ewmh.cc |