Makefile: make desktop entries installation optional
This commit is contained in:
parent
d093d38eba
commit
85f8abe6f4
18
Makefile
18
Makefile
@ -3,6 +3,8 @@
|
||||
|
||||
include VERSION
|
||||
|
||||
WITH_DISTROMENU:=
|
||||
|
||||
ARCH:=`uname -m`
|
||||
|
||||
ifeq ($(ARCH), arm)
|
||||
@ -111,19 +113,19 @@ install-locales: locales
|
||||
done
|
||||
|
||||
install-distromenu: dist-update
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(xdg_directorydir)
|
||||
@if [ "$(WITH_DISTROMENU)" ]; then \
|
||||
$(INSTALL_DIR) $(DESTDIR)$(xdg_directorydir); \
|
||||
$(INSTALL_DATA) menu/netsrpms.directory \
|
||||
$(DESTDIR)$(xdg_directorydir)/netsrpms.directory
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(xdg_mergedmenudir)
|
||||
$(DESTDIR)$(xdg_directorydir)/netsrpms.directory; \
|
||||
$(INSTALL_DIR) $(DESTDIR)$(xdg_mergedmenudir); \
|
||||
$(INSTALL_DATA) menu/netsrpms.menu \
|
||||
$(DESTDIR)$(xdg_mergedmenudir)/netsrpms.menu
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(xdg_appsdir)
|
||||
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(xdg_appsdir)
|
||||
$(DESTDIR)$(xdg_mergedmenudir)/netsrpms.menu; \
|
||||
$(INSTALL_DIR) $(DESTDIR)$(xdg_appsdir); \
|
||||
for pck in $(pck_srpms); do\
|
||||
$(INSTALL_DATA) menu/$$pck.desktop \
|
||||
$(DESTDIR)$(xdg_appsdir)/$$pck.desktop;\
|
||||
done
|
||||
done; \
|
||||
fi
|
||||
|
||||
install-srpms:
|
||||
@$(INSTALL_DIR) $(DESTDIR)$(netsrpmsdir)
|
||||
|
Loading…
Reference in New Issue
Block a user