2001-12-11 20:47:02 +00:00
|
|
|
# data/Makefile.am for Fluxbox - an X11 Window manager
|
|
|
|
|
2007-07-07 23:11:04 +00:00
|
|
|
PROGRAM_PREFIX=@program_prefix@
|
|
|
|
PROGRAM_SUFFIX=@program_suffix@
|
|
|
|
|
2005-05-27 11:04:33 +00:00
|
|
|
DEFAULT_MENU = @DEFAULT_MENU@
|
2005-01-24 16:27:06 +00:00
|
|
|
DEFAULT_STYLE = @DEFAULT_STYLE@
|
2005-05-27 11:04:33 +00:00
|
|
|
DEFAULT_KEYS = @DEFAULT_KEYS@
|
2008-04-25 08:36:26 +00:00
|
|
|
DEFAULT_APPS = @DEFAULT_APPS@
|
2008-04-26 00:56:51 +00:00
|
|
|
DEFAULT_OVERLAY = @DEFAULT_OVERLAY@
|
2005-05-27 11:04:33 +00:00
|
|
|
DEFAULT_INIT = @DEFAULT_INIT@
|
2008-06-20 03:48:26 +00:00
|
|
|
DEFAULT_WINDOWMENU = @DEFAULT_WINDOWMENU@
|
2005-01-12 06:19:25 +00:00
|
|
|
|
2003-09-07 19:10:22 +00:00
|
|
|
SUBDIRS= styles
|
2008-04-25 08:36:26 +00:00
|
|
|
CLEANFILES= menu menu.in menu.pre menu.bak init apps
|
2003-09-07 19:10:22 +00:00
|
|
|
MAINTAINERCLEANFILES= Makefile.in
|
2008-09-03 13:36:44 +00:00
|
|
|
pkgdata_DATA= keys menu init apps overlay windowmenu
|
|
|
|
EXTRA_DIST= keys init.in apps.in overlay windowmenu
|
2008-04-25 08:36:26 +00:00
|
|
|
all-local: menu init apps
|
2005-05-27 11:04:33 +00:00
|
|
|
install-pkgdataDATA:
|
|
|
|
@echo "Installing menu file in $(DESTDIR)$(DEFAULT_MENU)"
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_MENU))
|
2011-05-09 17:27:51 +00:00
|
|
|
$(INSTALL_DATA) ./menu $(DESTDIR)$(DEFAULT_MENU)
|
2005-05-27 11:04:33 +00:00
|
|
|
@echo "Installing keys file in $(DESTDIR)$(DEFAULT_KEYS)"
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_KEYS))
|
2006-02-19 18:27:07 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/keys $(DESTDIR)$(DEFAULT_KEYS)
|
2008-04-25 08:36:26 +00:00
|
|
|
@echo "Installing apps file in $(DESTDIR)$(DEFAULT_APPS)"
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_APPS))
|
2011-05-09 17:27:51 +00:00
|
|
|
$(INSTALL_DATA) ./apps $(DESTDIR)$(DEFAULT_APPS)
|
2008-04-26 00:56:51 +00:00
|
|
|
@echo "Installing overlay file in $(DESTDIR)$(DEFAULT_OVERLAY)"
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_OVERLAY))
|
|
|
|
$(INSTALL_DATA) $(srcdir)/overlay $(DESTDIR)$(DEFAULT_OVERLAY)
|
2005-05-27 11:04:33 +00:00
|
|
|
@echo "Installing init file in $(DESTDIR)$(DEFAULT_INIT)"
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_INIT))
|
2011-05-09 17:27:51 +00:00
|
|
|
$(INSTALL_DATA) ./init $(DESTDIR)$(DEFAULT_INIT)
|
2008-06-20 03:48:26 +00:00
|
|
|
@echo "Installing windowmenu file in $(DESTDIR)$(DEFAULT_WINDOWMENU)"
|
|
|
|
$(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_WINDOWMENU))
|
|
|
|
$(INSTALL_DATA) $(srcdir)/windowmenu $(DESTDIR)$(DEFAULT_WINDOWMENU)
|
2005-05-27 11:04:33 +00:00
|
|
|
|
2001-12-11 20:47:02 +00:00
|
|
|
distclean-local:
|
2003-09-07 19:10:22 +00:00
|
|
|
rm -f *\~
|
|
|
|
init: init.in
|
2005-01-12 06:19:25 +00:00
|
|
|
@regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir),g" \
|
2007-07-07 23:11:04 +00:00
|
|
|
-e "s,@pkgprefix@,$(PROGRAM_PREFIX:NONE=),g" \
|
|
|
|
-e "s,@pkgsuffix@,$(PROGRAM_SUFFIX:NONE=),g" \
|
2005-01-12 06:19:25 +00:00
|
|
|
-e "s,@default_style@,$(DEFAULT_STYLE),g" $(srcdir)/init.in > init
|
2002-09-07 19:07:20 +00:00
|
|
|
|
2008-04-25 08:36:26 +00:00
|
|
|
apps: apps.in
|
|
|
|
@regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir),g" \
|
|
|
|
-e "s,@pkgprefix@,$(PROGRAM_PREFIX:NONE=),g" \
|
|
|
|
-e "s,@pkgsuffix@,$(PROGRAM_SUFFIX:NONE=),g" $(srcdir)/apps.in > apps
|
|
|
|
|
2003-09-07 19:10:22 +00:00
|
|
|
menu: ../util/fluxbox-generate_menu
|
|
|
|
env MENUFILENAME=menu \
|
|
|
|
PREFIX="${prefix}" \
|
|
|
|
MENUTITLE="Fluxbox-${VERSION}" \
|
|
|
|
INSTALL=Yes \
|
2007-03-31 11:28:46 +00:00
|
|
|
PATH="${PATH}:../util:../util/fbrun" \
|
2003-09-07 19:10:22 +00:00
|
|
|
../util/fluxbox-generate_menu
|
|
|
|
|
2003-11-15 19:30:27 +00:00
|
|
|
../util/fluxbox-generate_menu:
|
2003-12-29 00:00:28 +00:00
|
|
|
cd ../util && ${MAKE} fluxbox-generate_menu
|