Makefile.am 1.12 KB
Newer Older
1 2 3
NULL =

cataloguedir = $(GLADE_CATALOGUE_DIR)
4
nodist_catalogue_DATA = vte-$(VTE_API_VERSION).xml
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

icons = \
	hicolor_actions_16x16_widget-vte-terminal.png \
	hicolor_actions_22x22_widget-vte-terminal.png \
	$(NULL)

EXTRA_DIST = \
	$(icons) \
	$(NULL)

install-icons:
	for icon in $(icons); do \
		THEME=`echo $$icon | cut -d_ -f1`; \
		CONTEXT=`echo $$icon | cut -d_ -f2`; \
		SIZE=`echo $$icon | cut -d_ -f3`; \
		ICONFILE=`echo $$icon | cut -d_ -f4`; \
		mkdir -p $(DESTDIR)$(GLADE_ICON_DIR)/$$THEME/$$SIZE/$$CONTEXT; \
		$(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(GLADE_ICON_DIR)/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
	done

uninstall-icons:
	-for icon in $(icons); do \
		THEME=`echo $$icon | cut -d_ -f1`; \
		CONTEXT=`echo $$icon | cut -d_ -f2`; \
		SIZE=`echo $$icon | cut -d_ -f3`; \
		ICONFILE=`echo $$icon | cut -d_ -f4`; \
		rm -f $(DESTDIR)$(GLADE_ICON_DIR)/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
	done

validate: $(catalogue_DATA)
	xmllint --dtdvalid $(GLADE_CATALOGUE_DIR)/glade-catalog.dtd --noout $<

install-data-local: install-icons

uninstall-local: uninstall-icons

@INTLTOOL_XML_NOMERGE_RULE@
Behdad Esfahbod's avatar
Behdad Esfahbod committed
42 43

-include $(top_srcdir)/git.mk