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
|
|
|
|
2017-03-30 19:08:30 +02:00
|
|
|
ICONS = $(sort $(wildcard $(d)*.png)) $(sort $(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
|
|
|
|
2019-09-08 06:02:02 +02:00
|
|
|
APPDATA_FILE := $(d)aegisub.appdata.xml
|
|
|
|
APPDATA_FILE_PO := $(d)../../po
|
|
|
|
APPDATA_FILE_INSTALLED = $(DESTDIR)$(P_APPDATA)/$(notdir $(APPDATA_FILE))
|
|
|
|
|
|
|
|
DISTCLEANFILES += $(APPDATA_FILE)
|
|
|
|
|
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
|
|
|
|
2019-09-08 06:02:02 +02:00
|
|
|
%.appdata.xml: %.appdata.xml.template $(APPDATA_FILE_PO)
|
|
|
|
intltool-merge --quiet --xml-style $(APPDATA_FILE_PO) $< $@
|
|
|
|
|
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)
|
2019-09-08 06:02:02 +02:00
|
|
|
$(APPDATA_FILE_INSTALLED): $(APPDATA_FILE) ; $(MKDIR_INSTALL)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
2014-06-17 03:22:06 +02:00
|
|
|
ifneq (yes, $(BUILD_DARWIN))
|
|
|
|
install: \
|
2019-09-08 06:02:02 +02:00
|
|
|
$(APPDATA_FILE_INSTALLED) \
|
2014-06-17 03:22:06 +02:00
|
|
|
$(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
|