aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 1b09b39e712b20a7cf454462c407588f239d6d87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# Makefile.am for Fluxbox - http://fluxbox.org

ACLOCAL_AMFLAGS = -I m4
AM_CPPFLAGS = \
	-include $(top_builddir)/config.h

# the defaults.hh is wrote to builddir
src_incdir = $(top_srcdir)/src -I$(top_builddir)/src
fbtk_incdir = $(top_srcdir)/src/FbTk
nls_incdir = $(top_srcdir)/nls

EXTRA_DIST = \
	3rd/vim/ \
	build-aux/config.rpath \
	nls/fluxbox-nls.hh \
	nls/nlsinfo

CLEANFILES =
bin_PROGRAMS =

MAINTAINERCLEANFILES = \
	aclocal.m4 \
	config.h.in \
	configure \
	Makefile.in \
	stamp-h.in

DEFAULT_MENU=@DEFAULT_MENU@
DEFAULT_STYLE=@DEFAULT_STYLE@
DEFAULT_KEYSFILE=@DEFAULT_KEYS@
DEFAULT_APPSFILE=@DEFAULT_APPS@
DEFAULT_OVERLAY=@DEFAULT_OVERLAY@
DEFAULT_INITFILE=@DEFAULT_INIT@
DEFAULT_WINDOWMENU=@DEFAULT_WINDOWMENU@
PROGRAM_PREFIX=@program_prefix@
PROGRAM_SUFFIX=@program_suffix@

# Do not rely on configure.ac AC_CONFIG_FILES for install paths.  The
# paths should be expanded at make time rather than configure.
edit_cmd = sed \
	 -e 's|@bindir[@]|$(bindir)|g' \
	 -e 's|@datadir[@]|$(datadir)|g' \
	 -e 's|@exec_prefix[@]|$(exec_prefix)|g' \
	 -e 's|@includedir[@]|$(includedir)|g' \
	 -e 's|@localstatedir[@]|$(localstatedir)|g' \
	 -e 's|@pkgbindir[@]|$(pkgbindir)|g' \
	 -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
	 -e 's|@pkgprefix[@]|$(pkgprefix:NONE=)|g' \
	 -e 's|@pkgsuffix[@]|$(pkgsuffix:NONE=)|g' \
	 -e 's|@prefix[@]|$(prefix)|g' \
	 -e 's|@sbindir[@]|$(sbindir)|g' \
	 -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
	 -e 's|@usrbin_execdir[@]|$(usrbin_execdir)|g' \
	 -e 's|@usrlib_execdir[@]|$(usrlib_execdir)|g' \
	 -e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \
	 -e 's|@VERSION[@]|$(VERSION)|g'

PATHFILES =
CLEANFILES += $(PATHFILES)
EXTRA_DIST += $(PATHFILES:=.in)

$(PATHFILES): Makefile
	@ rm -f $@ $@.tmp
	$(AM_V_GEN) srcdir=''; \
		test -f ./$@.in || srcdir=$(srcdir)/; \
		$(edit_cmd) $${srcdir}$@.in >$@.tmp
	@ mv $@.tmp $@

include data/Makemodule.am
include doc/Makemodule.am
include nls/Makemodule.am
include src/FbTk/Makemodule.am
include src/Makemodule.am
include src/tests/Makemodule.am
include util/Makemodule.am
include util/fbrun/Makemodule.am

uninstall-hook:
	rmdir $(DESTDIR)$(pkgdatadir)

source-doc:
	doxygen Doxyfile