[gnome-icon-theme-extras] forgotten makefile



commit 8968291836aea20806b87ae68ae98028948453ac
Author: Jakub Steiner <jimmac gmail com>
Date:   Tue Mar 23 12:35:11 2010 +0100

    forgotten makefile

 src/Makefile.am |   46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 46 insertions(+), 0 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
new file mode 100644
index 0000000..b926dd8
--- /dev/null
+++ b/src/Makefile.am
@@ -0,0 +1,46 @@
+
+icon_in_files = $(shell SRCDIR="$(srcdir)"; for i in `find $$SRCDIR -name "*.svg"`; do printf "$$i "; done)
+
+if ALLOW_RENDERING
+render-png: $(icon_in_files) Makefile
+	for file in $(icon_in_files); do \
+		for size in $(render_sizes); do \
+			$(ICONTOOL_RENDER) -s $$size -o $(top_builddir)/$(SVGOUTDIR) $$file >/dev/null; \
+		done; \
+	done
+
+else
+render-png: $(icon_in_files) Makefile
+	if test "x$(top_srcdir)" != "x$(top_builddir)"; then \
+		cp -a $(top_srcdir)/$(SVGOUTDIR) $(top_builddir)/$(SVGOUTDIR); \
+	fi
+
+endif
+
+$(render_sizes): Makefile
+
+render: render-png
+
+install-data-local:
+	for size in $(render_sizes); do \
+		for file in `cd $(top_builddir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \
+			context="`dirname $$file`"; \
+			$(mkdir_p) $(DESTDIR)$(themedir)/$$size/$$context; \
+			$(install_sh_DATA) $(top_srcdir)/$(SVGOUTDIR)/$$size/$$file $(DESTDIR)$(themedir)/$$size/$$file; \
+		done; \
+	done
+
+uninstall-local:
+	for size in $(render_sizes); do \
+		for file in `cd $(top_builddir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \
+			rm -f $(DESTDIR)$(themedir)/$$size/$$file; \
+		done; \
+	done
+
+EXTRA_DIST =			\
+	$(icon_in_files)
+
+
+MAINTAINERCLEANFILES =		\
+	Makefile.in		\
+	$(icon_cache)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]