diff options
Diffstat (limited to 'data/Makefile.am')
-rw-r--r-- | data/Makefile.am | 29 |
1 files changed, 23 insertions, 6 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 80fed6a..e921afa 100644 --- a/data/Makefile.am +++ b/data/Makefile.am | |||
@@ -6,24 +6,36 @@ PROGRAM_SUFFIX=@program_suffix@ | |||
6 | DEFAULT_MENU = @DEFAULT_MENU@ | 6 | DEFAULT_MENU = @DEFAULT_MENU@ |
7 | DEFAULT_STYLE = @DEFAULT_STYLE@ | 7 | DEFAULT_STYLE = @DEFAULT_STYLE@ |
8 | DEFAULT_KEYS = @DEFAULT_KEYS@ | 8 | DEFAULT_KEYS = @DEFAULT_KEYS@ |
9 | DEFAULT_APPS = @DEFAULT_APPS@ | ||
10 | DEFAULT_OVERLAY = @DEFAULT_OVERLAY@ | ||
9 | DEFAULT_INIT = @DEFAULT_INIT@ | 11 | DEFAULT_INIT = @DEFAULT_INIT@ |
12 | DEFAULT_WINDOWMENU = @DEFAULT_WINDOWMENU@ | ||
10 | 13 | ||
11 | SUBDIRS= styles | 14 | SUBDIRS= styles |
12 | CLEANFILES= menu menu.in menu.pre menu.bak init | 15 | CLEANFILES= menu menu.in menu.pre menu.bak init apps |
13 | MAINTAINERCLEANFILES= Makefile.in | 16 | MAINTAINERCLEANFILES= Makefile.in |
14 | pkgdata_DATA= keys menu init | 17 | pkgdata_DATA= keys menu init apps overlay |
15 | EXTRA_DIST= keys init.in | 18 | EXTRA_DIST= keys init.in apps.in overlay |
16 | all-local: menu init | 19 | all-local: menu init apps |
17 | install-pkgdataDATA: | 20 | install-pkgdataDATA: |
18 | @echo "Installing menu file in $(DESTDIR)$(DEFAULT_MENU)" | 21 | @echo "Installing menu file in $(DESTDIR)$(DEFAULT_MENU)" |
19 | $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_MENU)) | 22 | $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_MENU)) |
20 | $(INSTALL_DATA) menu $(DESTDIR)$(DEFAULT_MENU) | 23 | $(INSTALL_DATA) $(srcdir)/menu $(DESTDIR)$(DEFAULT_MENU) |
21 | @echo "Installing keys file in $(DESTDIR)$(DEFAULT_KEYS)" | 24 | @echo "Installing keys file in $(DESTDIR)$(DEFAULT_KEYS)" |
22 | $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_KEYS)) | 25 | $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_KEYS)) |
23 | $(INSTALL_DATA) $(srcdir)/keys $(DESTDIR)$(DEFAULT_KEYS) | 26 | $(INSTALL_DATA) $(srcdir)/keys $(DESTDIR)$(DEFAULT_KEYS) |
27 | @echo "Installing apps file in $(DESTDIR)$(DEFAULT_APPS)" | ||
28 | $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_APPS)) | ||
29 | $(INSTALL_DATA) $(srcdir)/apps $(DESTDIR)$(DEFAULT_APPS) | ||
30 | @echo "Installing overlay file in $(DESTDIR)$(DEFAULT_OVERLAY)" | ||
31 | $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_OVERLAY)) | ||
32 | $(INSTALL_DATA) $(srcdir)/overlay $(DESTDIR)$(DEFAULT_OVERLAY) | ||
24 | @echo "Installing init file in $(DESTDIR)$(DEFAULT_INIT)" | 33 | @echo "Installing init file in $(DESTDIR)$(DEFAULT_INIT)" |
25 | $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_INIT)) | 34 | $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_INIT)) |
26 | $(INSTALL_DATA) init $(DESTDIR)$(DEFAULT_INIT) | 35 | $(INSTALL_DATA) $(srcdir)/init $(DESTDIR)$(DEFAULT_INIT) |
36 | @echo "Installing windowmenu file in $(DESTDIR)$(DEFAULT_WINDOWMENU)" | ||
37 | $(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_WINDOWMENU)) | ||
38 | $(INSTALL_DATA) $(srcdir)/windowmenu $(DESTDIR)$(DEFAULT_WINDOWMENU) | ||
27 | 39 | ||
28 | distclean-local: | 40 | distclean-local: |
29 | rm -f *\~ | 41 | rm -f *\~ |
@@ -33,6 +45,11 @@ init: init.in | |||
33 | -e "s,@pkgsuffix@,$(PROGRAM_SUFFIX:NONE=),g" \ | 45 | -e "s,@pkgsuffix@,$(PROGRAM_SUFFIX:NONE=),g" \ |
34 | -e "s,@default_style@,$(DEFAULT_STYLE),g" $(srcdir)/init.in > init | 46 | -e "s,@default_style@,$(DEFAULT_STYLE),g" $(srcdir)/init.in > init |
35 | 47 | ||
48 | apps: apps.in | ||
49 | @regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir),g" \ | ||
50 | -e "s,@pkgprefix@,$(PROGRAM_PREFIX:NONE=),g" \ | ||
51 | -e "s,@pkgsuffix@,$(PROGRAM_SUFFIX:NONE=),g" $(srcdir)/apps.in > apps | ||
52 | |||
36 | menu: ../util/fluxbox-generate_menu | 53 | menu: ../util/fluxbox-generate_menu |
37 | env MENUFILENAME=menu \ | 54 | env MENUFILENAME=menu \ |
38 | PREFIX="${prefix}" \ | 55 | PREFIX="${prefix}" \ |