summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorRodney Dawes <dobey@gnome.org>2010-01-03 17:32:56 -0500
committerRodney Dawes <dobey@gnome.org>2010-01-03 17:32:56 -0500
commit7a734d51716428f97e82b1ae8aa7a8b9bda64ef5 (patch)
tree204cf0be2046b20c0b4cafcc30fa1b7ca8ae9f73 /Makefile.am
parent2354277987b3112eb7f7ef9a9d0e1ad1a880d70e (diff)
downloadadwaita-icon-theme-7a734d51716428f97e82b1ae8aa7a8b9bda64ef5.tar.gz
Bring back a proper build system and theme generation
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am101
1 files changed, 101 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 000000000..26fd5d8f8
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,101 @@
+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 | sed -e "s/,$$//g")
+
+render: Makefile
+ ($(am__cd) $(SVGSRCDIR) && $(MAKE) $(AM_MAKEFLAGS) render) \
+ || eval `exit 1`
+
+%.theme.in: %.theme.in.in $(SVGOUTDIR) Makefile
+ dirs="`echo $(THEME_DIRS) | sed -e 's#$(srcdir)/gnome/##g'`"; \
+ sed -e "s|\@THEME_DIRS\@|$$dirs|g" < $< > $@; \
+ for dir in `echo $$dirs | sed -e "s/,/ /g"`; do \
+ sizefull="`dirname $$dir`"; \
+ size="`echo $$sizefull | sed -e 's/x.*$$//g'`"; \
+ context="`basename $$dir`"; \
+ echo "[$$dir]" >> $@; \
+ if test "$$context" = "actions"; then \
+ echo "Context=Actions" >> $@; \
+ fi; \
+ if test "$$context" = "animations"; then \
+ echo "Context=Animations" >> $@; \
+ fi; \
+ if test "$$context" = "apps"; then \
+ echo "Context=Applications" >> $@; \
+ fi; \
+ if test "$$context" = "categories"; then \
+ echo "Context=Categories" >> $@; \
+ fi; \
+ if test "$$context" = "devices"; then \
+ echo "Context=Devices" >> $@; \
+ fi; \
+ if test "$$context" = "emblems"; then \
+ echo "Context=Emblems" >> $@; \
+ fi; \
+ if test "$$context" = "emotes"; then \
+ echo "Context=Emotes" >> $@; \
+ fi; \
+ if test "$$context" = "intl"; then \
+ echo "Context=International" >> $@; \
+ fi; \
+ if test "$$context" = "mimetypes"; then \
+ echo "Context=MimeTypes" >> $@; \
+ fi; \
+ if test "$$context" = "places"; then \
+ echo "Context=Places" >> $@; \
+ fi; \
+ if test "$$context" = "status"; then \
+ echo "Context=Status" >> $@; \
+ fi; \
+ echo "Size=$$size" >> $@; \
+ if test "$$size" = "256"; then \
+ echo "MinSize=56" >> $@; \
+ echo "MaxSize=512" >> $@; \
+ echo "Type=Scalable" >> $@; \
+ else \
+ echo "Type=Fixed" >> $@; \
+ fi; \
+ echo "" >> $@; \
+ done
+
+@INTLTOOL_THEME_RULE@
+
+# 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
+
+EXTRA_DIST = \
+ gnome \
+ $(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