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
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
DESKTOP_FILE = \
|
|
|
|
aegisub.desktop
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
aegisub.desktop.in \
|
|
|
|
$(ICON_HICOLOR) \
|
|
|
|
$(ICON_SCALABLE)
|
|
|
|
|
|
|
|
install: install-desktop install-icons
|
|
|
|
|
|
|
|
install-desktop:
|
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:
|
|
|
|
@$(BIN_MKDIR) -p $(addprefix $(P_ICON)/hicolor/, $(dir $(ICON_HICOLOR)))
|
|
|
|
@for i in $(ICON_HICOLOR); do \
|
2012-01-08 02:03:45 +01:00
|
|
|
$(BIN_ECHO) "$(BIN_INSTALL) $$i $(DESTDIR)$(P_ICON)/hicolor/$$i"; \
|
|
|
|
$(BIN_INSTALL) $$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
|
|
|
|
|
|
|
|
|
|
|
CLEANFILES = aegisub.desktop
|
|
|
|
|
|
|
|
include ../Makefile.target
|