2014-06-17 03:22:06 +02:00
|
|
|
include $(dir $(lastword $(MAKEFILE_LIST)))../../header.mk
|
|
|
|
DESKTOP_SRC := $(d)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
ICONS = $(wildcard $(d)*.png) $(wildcard $(d)*.svg)
|
2014-06-21 17:05:42 +02:00
|
|
|
ICONS_INSTALLED = $(DESTDIR)$(P_ICON)/hicolor/%/apps/aegisub.
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
DESKTOP_FILE := $(d)aegisub.desktop
|
|
|
|
DESKTOP_FILE_PO := $(d)../../po
|
|
|
|
DESKTOP_FILE_INSTALLED = $(DESTDIR)$(P_DESKTOP)/$(notdir $(DESKTOP_FILE))
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
DISTCLEANFILES += $(DESKTOP_FILE)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
%.desktop: %.desktop.template $(DESKTOP_FILE_PO)
|
|
|
|
intltool-merge --quiet --desktop-style $(DESKTOP_FILE_PO) $< $@
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
$(ICONS_INSTALLED)png: $(d)%.png ; $(MKDIR_INSTALL)
|
|
|
|
$(ICONS_INSTALLED)svg: $(d)%.svg ; $(MKDIR_INSTALL)
|
|
|
|
$(DESKTOP_FILE_INSTALLED): $(DESKTOP_FILE) ; $(MKDIR_INSTALL)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
ifneq (yes, $(BUILD_DARWIN))
|
|
|
|
install: \
|
|
|
|
$(DESKTOP_FILE_INSTALLED) \
|
|
|
|
$(patsubst %.png, $(ICONS_INSTALLED)png, $(patsubst %.svg, $(ICONS_INSTALLED)svg, $(notdir $(ICONS))))
|
|
|
|
endif
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
include $(TOP)Makefile.target
|