From cbcc6401c6a87623f8cf714cd699db3b63079915 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 30 Jun 2003 20:33:05 +0000 Subject: cleaner compile, default defines in generated defaults.hh file now --- src/Makefile.am | 20 +++++++++++++------- 1 file 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 DEFAULT_KEYSFILE=$(pkgdatadir)/keys DEFAULT_INITFILE= -AM_CPPFLAGS= -Wall @CPPFLAGS@ \ --DLOCALEPATH=\"$(pkgdatadir)/nls\" \ --DDEFAULTMENU=\"$(DEFAULT_MENU)\" \ --DDEFAULTSTYLE=\"$(DEFAULT_STYLE)\" \ --DDEFAULTKEYSFILE=\"$(DEFAULT_KEYSFILE)\"\ --DDEFAULT_INITFILE=\"$(pkgdatadir)/init\"\ --IFbTk +AM_CPPFLAGS= -Wall @CPPFLAGS@ -IFbTk bin_PROGRAMS= fluxbox +BUILT_SOURCES = defaults.hh +defaults.hh: Makefile + echo '// This file is generated from makefile. Do not edit!' > defaults.hh + echo '#define DEFAULTMENU "$(DEFAULTMENU)"' >> defaults.hh + echo '#define DEFAULTSTYLE "$(DEFAULT_STYLE)"' >> defaults.hh + echo '#define DEFAULTKEYSFILE "$(DEFAULT_KEYSFILE)"' >> defaults.hh + echo '#define DEFAULT_INITFILE "$(pkgdatadir)/init"' >> defaults.hh + echo '#define LOCALEPATH "$(pkgdatadir)/nls"' >> defaults.hh +# some extra deps for I18n and fluxbox + +I18n.$(OBJEXT): defaults.hh +fluxbox.$(OBJEXT): defaults.hh if NEWWMSPEC newwmspec_SOURCE= Ewmh.hh Ewmh.cc -- cgit v0.11.2