mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-28 19:05:51 +01:00
The header "WINGsP.h" needs different behaviour depending on whether the support for Pango was enabled or not. But the related macro USE_PANGO is defined by WindowMaker's configure, and after this header have been installed the macro is no more valid. This patch makes the "WINGsP.h" a generated file, so it will be different depending on USE_PANGO, but will not make use of the macro itself. As a side effect of being now generated, the include paths in the makefile have been updated to include build-dir too, because for users doing an out-of-tree build the generated file (that is used during compilation) is placed in the build-dir. Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
19 lines
473 B
Makefile
19 lines
473 B
Makefile
## automake input file for WINGs - Headers subdir
|
|
|
|
AUTOMAKE_OPTIONS =
|
|
|
|
# is this a kluge? if so, how should i do it?
|
|
includedir = @includedir@/WINGs
|
|
|
|
BUILT_SOURCES = WINGsP.h
|
|
CLEANFILES = WINGsP.h
|
|
include_HEADERS = WINGs.h WUtil.h
|
|
nodist_include_HEADERS = WINGsP.h
|
|
EXTRA_DIST = WINGsP.h.in
|
|
|
|
WINGsP.h: WINGsP.h.in $(top_builddir)/config.h
|
|
$(AM_V_GEN)$(top_srcdir)/script/replace-ac-keywords.sh \
|
|
--header "$(top_builddir)/config.h" \
|
|
--filter "USE_PANGO" \
|
|
-o $@ $<
|