383f99d4b6
PATH when generating install menu so it can find fbrun. data thus needs to come after util in toplevel subdir processing so that fbrun is built
40 lines
1.3 KiB
Makefile
40 lines
1.3 KiB
Makefile
# data/Makefile.am for Fluxbox - an X11 Window manager
|
|
|
|
DEFAULT_MENU = @DEFAULT_MENU@
|
|
DEFAULT_STYLE = @DEFAULT_STYLE@
|
|
DEFAULT_KEYS = @DEFAULT_KEYS@
|
|
DEFAULT_INIT = @DEFAULT_INIT@
|
|
|
|
SUBDIRS= styles
|
|
CLEANFILES= menu menu.in menu.pre menu.bak init
|
|
MAINTAINERCLEANFILES= Makefile.in
|
|
pkgdata_DATA= keys menu init
|
|
EXTRA_DIST= keys init.in README.style README.menu README
|
|
all-local: menu init
|
|
install-pkgdataDATA:
|
|
@echo "Installing menu file in $(DESTDIR)$(DEFAULT_MENU)"
|
|
$(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_MENU))
|
|
$(INSTALL_DATA) menu $(DESTDIR)$(DEFAULT_MENU)
|
|
@echo "Installing keys file in $(DESTDIR)$(DEFAULT_KEYS)"
|
|
$(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_KEYS))
|
|
$(INSTALL_DATA) $(srcdir)/keys $(DESTDIR)$(DEFAULT_KEYS)
|
|
@echo "Installing init file in $(DESTDIR)$(DEFAULT_INIT)"
|
|
$(mkinstalldirs) $(DESTDIR)$(dir $(DEFAULT_INIT))
|
|
$(INSTALL_DATA) init $(DESTDIR)$(DEFAULT_INIT)
|
|
|
|
distclean-local:
|
|
rm -f *\~
|
|
init: init.in
|
|
@regex_cmd@ -e "s,@pkgdatadir@,$(pkgdatadir),g" \
|
|
-e "s,@default_style@,$(DEFAULT_STYLE),g" $(srcdir)/init.in > init
|
|
|
|
menu: ../util/fluxbox-generate_menu
|
|
env MENUFILENAME=menu \
|
|
PREFIX="${prefix}" \
|
|
MENUTITLE="Fluxbox-${VERSION}" \
|
|
INSTALL=Yes \
|
|
PATH="${PATH}:../util:../util/fbrun" \
|
|
../util/fluxbox-generate_menu
|
|
|
|
../util/fluxbox-generate_menu:
|
|
cd ../util && ${MAKE} fluxbox-generate_menu
|