2010-12-05 20:12:42 +01:00
|
|
|
include ../Makefile.inc
|
|
|
|
|
|
|
|
applicationsdir = $(DESKTOP_DATADIR)/applications
|
|
|
|
applications_DATA = aegisub.desktop
|
|
|
|
|
|
|
|
iconsscalabledir = $(DESKTOP_DATADIR)/icons/hicolor/scalable/apps
|
|
|
|
iconsscalable_DATA = scalable/aegisub.svg
|
|
|
|
|
2013-12-24 19:58:28 +01:00
|
|
|
aegisub.desktop: aegisub.desktop.template ../po
|
|
|
|
intltool-merge --quiet --desktop-style ../po aegisub.desktop.template aegisub.desktop
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
all: ;
|
|
|
|
|
|
|
|
ICON_HICOLOR = \
|
|
|
|
16x16/apps/aegisub.png \
|
|
|
|
22x22/apps/aegisub.png \
|
|
|
|
24x24/apps/aegisub.png \
|
|
|
|
32x32/apps/aegisub.png \
|
|
|
|
48x48/apps/aegisub.png \
|
|
|
|
64x64/apps/aegisub.png
|
|
|
|
|
|
|
|
ICON_SCALABLE = \
|
|
|
|
scalable/apps/aegisub.svg
|
|
|
|
|
2013-12-24 19:58:28 +01:00
|
|
|
DESKTOP_FILE = aegisub.desktop
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
EXTRA_DIST = \
|
2013-12-24 19:58:28 +01:00
|
|
|
aegisub.desktop.template.in \
|
|
|
|
aegisub.desktop.template \
|
2010-12-05 20:12:42 +01:00
|
|
|
$(ICON_HICOLOR) \
|
|
|
|
$(ICON_SCALABLE)
|
|
|
|
|
|
|
|
install: install-desktop install-icons
|
|
|
|
|
2013-12-24 19:58:28 +01:00
|
|
|
install-desktop: $(DESKTOP_FILE)
|
2012-01-08 02:03:45 +01:00
|
|
|
@$(BIN_MKDIR) -p $(DESTDIR)$(P_DESKTOP)
|
|
|
|
$(BIN_INSTALL) $(DESKTOP_FILE) $(DESTDIR)$(P_DESKTOP)/$(DESKTOP_FILE)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
|
|
|
|
install-icons:
|
2012-01-10 21:56:25 +01:00
|
|
|
@$(BIN_MKDIR) -p $(addprefix $(DESTDIR)$(P_ICON)/hicolor/, $(dir $(ICON_HICOLOR)))
|
2010-12-05 20:12:42 +01:00
|
|
|
@for i in $(ICON_HICOLOR); do \
|
2013-12-07 00:25:17 +01:00
|
|
|
$(BIN_ECHO) "$(BIN_INSTALL) -m644 $$i $(DESTDIR)$(P_ICON)/hicolor/$$i"; \
|
|
|
|
$(BIN_INSTALL) -m644 $$i $(DESTDIR)$(P_ICON)/hicolor/$$i; \
|
2010-12-05 20:12:42 +01:00
|
|
|
done
|
2012-01-08 02:03:45 +01:00
|
|
|
$(BIN_TOUCH) $(DESTDIR)$(P_ICON)/hicolor
|
|
|
|
$(BIN_MKDIR) -p $(DESTDIR)$(P_ICON)/hicolor/scalable/apps
|
|
|
|
$(BIN_CP) $(ICON_SCALABLE) $(DESTDIR)$(P_ICON)/hicolor/$(ICON_SCALABLE)
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
|
2012-10-10 00:29:13 +02:00
|
|
|
DISTCLEANFILES = aegisub.desktop
|
2010-12-05 20:12:42 +01:00
|
|
|
|
|
|
|
include ../Makefile.target
|