aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-05 14:08:32 (GMT)
committerMathias Gumz <mathias.gumz@gmail.com>2015-01-05 14:08:32 (GMT)
commitf8d0bd4cb303caad68c121a77974a3a0daa0c40e (patch)
tree94f2e1482a054e2316d8e3b8a066dcb6bdfc1f29 /data
parent0820bcb640e9030a99a4c47119df6b9305e632da (diff)
downloadfluxbox-f8d0bd4cb303caad68c121a77974a3a0daa0c40e.zip
fluxbox-f8d0bd4cb303caad68c121a77974a3a0daa0c40e.tar.bz2
Fix build-system: install data files (keys, apps, menu ...)
* Correctly build data files when operate outside of the $(srcdir) * Actually install data files * Use pkg-config to detect X11, works better on MacOSX. We used pkg-config already anyway, double checking for X11 does not yield better results. * Replace EXEEXT in some files while before installing them
Diffstat (limited to 'data')
-rw-r--r--data/Makemodule.am22
1 files changed, 12 insertions, 10 deletions
diff --git a/data/Makemodule.am b/data/Makemodule.am
index 437c54d..a1c15e4 100644
--- a/data/Makemodule.am
+++ b/data/Makemodule.am
@@ -28,30 +28,32 @@ include data/styles/bora_black/Makemodule.am
28include data/styles/arch/pixmaps/Makemodule.am 28include data/styles/arch/pixmaps/Makemodule.am
29include data/styles/arch/Makemodule.am 29include data/styles/arch/Makemodule.am
30 30
31install-pkgdataDATA: 31pkgdata_FILES = data/init data/keys data/apps data/overlay data/menu
32
33install-data-local: $(pkgdata_FILES)
32 @echo "Installing menu file in $(DESTDIR)$(DEFAULT_MENU)" 34 @echo "Installing menu file in $(DESTDIR)$(DEFAULT_MENU)"
33 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_MENU)) 35 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_MENU))
34 $(INSTALL_DATA) ./menu $(DESTDIR)$(DEFAULT_MENU) 36 $(INSTALL_DATA) ./data/menu $(DESTDIR)$(DEFAULT_MENU)
35 @echo "Installing keys file in $(DESTDIR)$(DEFAULT_KEYS)" 37 @echo "Installing keys file in $(DESTDIR)$(DEFAULT_KEYS)"
36 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_KEYS)) 38 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_KEYS))
37 $(INSTALL_DATA) $(srcdir)/keys $(DESTDIR)$(DEFAULT_KEYS) 39 $(INSTALL_DATA) $(srcdir)/data/keys $(DESTDIR)$(DEFAULT_KEYS)
38 @echo "Installing apps file in $(DESTDIR)$(DEFAULT_APPS)" 40 @echo "Installing apps file in $(DESTDIR)$(DEFAULT_APPS)"
39 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_APPS)) 41 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_APPS))
40 $(INSTALL_DATA) ./apps $(DESTDIR)$(DEFAULT_APPS) 42 $(INSTALL_DATA) ./data/apps $(DESTDIR)$(DEFAULT_APPS)
41 @echo "Installing overlay file in $(DESTDIR)$(DEFAULT_OVERLAY)" 43 @echo "Installing overlay file in $(DESTDIR)$(DEFAULT_OVERLAY)"
42 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_OVERLAY)) 44 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_OVERLAY))
43 $(INSTALL_DATA) $(srcdir)/overlay $(DESTDIR)$(DEFAULT_OVERLAY) 45 $(INSTALL_DATA) $(srcdir)/data/overlay $(DESTDIR)$(DEFAULT_OVERLAY)
44 @echo "Installing init file in $(DESTDIR)$(DEFAULT_INIT)" 46 @echo "Installing init file in $(DESTDIR)$(DEFAULT_INIT)"
45 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_INIT)) 47 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_INIT))
46 $(INSTALL_DATA) ./init $(DESTDIR)$(DEFAULT_INIT) 48 $(INSTALL_DATA) ./data/init $(DESTDIR)$(DEFAULT_INIT)
47 @echo "Installing windowmenu file in $(DESTDIR)$(DEFAULT_WINDOWMENU)" 49 @echo "Installing windowmenu file in $(DESTDIR)$(DEFAULT_WINDOWMENU)"
48 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_WINDOWMENU)) 50 $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_WINDOWMENU))
49 $(INSTALL_DATA) $(srcdir)/windowmenu $(DESTDIR)$(DEFAULT_WINDOWMENU) 51 $(INSTALL_DATA) $(srcdir)/data/windowmenu $(DESTDIR)$(DEFAULT_WINDOWMENU)
50 52
51menu: 53data/menu:
52 env MENUFILENAME=menu \ 54 env MENUFILENAME=$@ \
53 PREFIX="${prefix}" \ 55 PREFIX="${prefix}" \
54 MENUTITLE="Fluxbox-${VERSION}" \ 56 MENUTITLE="Fluxbox-${VERSION}" \
55 INSTALL=Yes \ 57 INSTALL=Yes \
56 PATH="${PATH}:../util:../util/fbrun" \ 58 PATH="${PATH}:../util:../util/fbrun" \
57 util/fluxbox-generate_menu 59 sh util/fluxbox-generate_menu