summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 22:26:22 -0300
committerPerberos <[email protected]>2011-12-01 22:26:22 -0300
commit783bf11df04627b63812812fc7ba756248499883 (patch)
tree4b5f8b0c60647c2727dd14b94e73538934f5d7ba /Makefile.am
downloadmate-icon-theme-783bf11df04627b63812812fc7ba756248499883.tar.bz2
mate-icon-theme-783bf11df04627b63812812fc7ba756248499883.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am109
1 files changed, 109 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..1229270
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,109 @@
+DISTCHECK_CONFIGURE_FLAGS = --disable-icon-mapping
+
+SUBDIRS = po $(SVGSRCDIR)
+
+theme_in_files = index.theme.in.in
+theme_DATA = $(theme_in_files:.theme.in.in=.theme)
+
+THEME_DIRS=$(shell SIZES="$(render_sizes)"; for size in $$SIZES; do for dir in `find $(srcdir)/$(SVGOUTDIR)/$$size/* -type d`; do printf "$$dir,"; done; done; echo "scalable/actions,scalable/apps,scalable/devices,scalable/emblems,scalable/mimetypes,scalable/places,scalable/status")
+
+%.theme.in: %.theme.in.in $(SVGOUTDIR) Makefile
+ dirs="`echo $(THEME_DIRS) | sed -e 's#$(srcdir)/mate/##g'`"; \
+ sed -e "s|\@THEME_DIRS\@|$$dirs|g" < $< > [email protected]; \
+ for dir in `echo $$dirs | sed -e "s/,/ /g"`; do \
+ sizefull="`dirname $$dir`"; \
+ if test "$$sizefull" = "scalable"; then \
+ size="16"; \
+ else \
+ size="`echo $$sizefull | sed -e 's/x.*$$//g'`"; \
+ fi; \
+ context="`basename $$dir`"; \
+ echo "[$$dir]" >> [email protected]; \
+ if test "$$context" = "actions"; then \
+ echo "Context=Actions" >> [email protected]; \
+ fi; \
+ if test "$$context" = "animations"; then \
+ echo "Context=Animations" >> [email protected]; \
+ fi; \
+ if test "$$context" = "apps"; then \
+ echo "Context=Applications" >> [email protected]; \
+ fi; \
+ if test "$$context" = "categories"; then \
+ echo "Context=Categories" >> [email protected]; \
+ fi; \
+ if test "$$context" = "devices"; then \
+ echo "Context=Devices" >> [email protected]; \
+ fi; \
+ if test "$$context" = "emblems"; then \
+ echo "Context=Emblems" >> [email protected]; \
+ fi; \
+ if test "$$context" = "emotes"; then \
+ echo "Context=Emotes" >> [email protected]; \
+ fi; \
+ if test "$$context" = "intl"; then \
+ echo "Context=International" >> [email protected]; \
+ fi; \
+ if test "$$context" = "mimetypes"; then \
+ echo "Context=MimeTypes" >> [email protected]; \
+ fi; \
+ if test "$$context" = "places"; then \
+ echo "Context=Places" >> [email protected]; \
+ fi; \
+ if test "$$context" = "status"; then \
+ echo "Context=Status" >> [email protected]; \
+ fi; \
+ echo "Size=$$size" >> [email protected]; \
+ if test "$$sizefull" = "scalable"; then \
+ echo "MinSize=8" >> [email protected]; \
+ echo "MaxSize=512" >> [email protected]; \
+ echo "Type=Scalable" >> [email protected]; \
+ elif test "$$size" = "256"; then \
+ echo "MinSize=56" >> [email protected]; \
+ echo "MaxSize=512" >> [email protected]; \
+ echo "Type=Scalable" >> [email protected]; \
+ else \
+ echo "Type=Fixed" >> [email protected]; \
+ fi; \
+ echo "" >> [email protected]; \
+ done
+
+
+# we don't want to install mo files, all translations are already stored
+# in theme files
+install-data-local:
+ $(MAKE) -C po uninstall
+ if [ -h $(DESTDIR)$(themedir) ]; then \
+ rm -f $(DESTDIR)$(themedir); \
+ fi
+ if [ -d $(DESTDIR)$(themedir) ]; then \
+ touch $(DESTDIR)$(themedir); \
+ fi
+
+pkgconfigdir = $(datadir)/pkgconfig
+pkgconfig_DATA = mate-icon-theme.pc
+
+EXTRA_DIST = \
+ mate-icon-theme.pc.in \
+ mate \
+ $(theme_in_files)
+
+CLEANFILES = \
+ $(theme_DATA)
+
+MAINTAINERCLEANFILES = \
+ Makefile.in \
+ aclocal.m4 \
+ config.guess \
+ config.h.in \
+ config.sub \
+ configure \
+ depcomp \
+ install-sh \
+ intltool-*.in \
+ libtool \
+ ltmain.sh \
+ missing \
+ mkinstalldirs \
+ po/Makefile.in.in \
+ po/$(GETTEXT_PACKAGE).pot