Add git.mk
[vte.git] / glade / Makefile.am
1 NULL =
2
3 cataloguedir = $(GLADE_CATALOGUE_DIR)
4 catalogue_in_files = vte.xml.in
5 catalogue_DATA = $(catalogue_in_files:.xml.in=.xml)
6
7 icons = \
8         hicolor_actions_16x16_widget-vte-terminal.png \
9         hicolor_actions_22x22_widget-vte-terminal.png \
10         $(NULL)
11
12 EXTRA_DIST = \
13         $(catalogue_DATA) \
14         $(icons) \
15         $(NULL)
16
17 install-icons:
18         for icon in $(icons); do \
19                 THEME=`echo $$icon | cut -d_ -f1`; \
20                 CONTEXT=`echo $$icon | cut -d_ -f2`; \
21                 SIZE=`echo $$icon | cut -d_ -f3`; \
22                 ICONFILE=`echo $$icon | cut -d_ -f4`; \
23                 mkdir -p $(DESTDIR)$(GLADE_ICON_DIR)/$$THEME/$$SIZE/$$CONTEXT; \
24                 $(INSTALL_DATA) $(srcdir)/$$icon $(DESTDIR)$(GLADE_ICON_DIR)/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
25         done
26
27 uninstall-icons:
28         -for icon in $(icons); do \
29                 THEME=`echo $$icon | cut -d_ -f1`; \
30                 CONTEXT=`echo $$icon | cut -d_ -f2`; \
31                 SIZE=`echo $$icon | cut -d_ -f3`; \
32                 ICONFILE=`echo $$icon | cut -d_ -f4`; \
33                 rm -f $(DESTDIR)$(GLADE_ICON_DIR)/$$THEME/$$SIZE/$$CONTEXT/$$ICONFILE; \
34         done
35
36 validate: $(catalogue_DATA)
37         xmllint --dtdvalid $(GLADE_CATALOGUE_DIR)/glade-catalog.dtd --noout $<
38
39 install-data-local: install-icons
40
41 uninstall-local: uninstall-icons
42
43 MAINTAINERCLEANFILES = $(catalogue_DATA)
44
45 @INTLTOOL_XML_NOMERGE_RULE@
46
47 -include $(top_srcdir)/git.mk