[gnome-icon-theme] Allow build where srcdir != builddir



commit acff4b5bceafcf3732646f4261565b96eb7560e9
Author: Paul Smith <psmith gnu org>
Date:   Tue Apr 27 12:45:50 2010 -0400

    Allow build where srcdir != builddir

 src/Makefile.am |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/Makefile.am b/src/Makefile.am
index ac87985..985ce3d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -6,7 +6,7 @@ $(render_sizes): Makefile
 install-data-local:
 	for size in $(render_sizes); do \
 		echo -e "Going to copy files for $$size"; \
-		for file in `cd $(top_builddir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \
+		for file in `cd $(top_srcdir)/$(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; \
@@ -15,7 +15,7 @@ install-data-local:
 	if [ $(ICONMAP) != "false" ]; then \
 		cd $(DESTDIR)$(themedir); \
 		for size in $(render_sizes); do \
-			cd $$size; \
+			cd $$size || continue; \
 			echo -e "Going to set up icon mapping for $$size"; \
 			for dir in `find . -type d`; do \
 				context="`echo $$dir | cut -c 3-`"; \
@@ -30,7 +30,7 @@ install-data-local:
 ## FIXME we should add a way to remove links generated by icon mapping
 uninstall-local:
 	for size in $(render_sizes); do \
-		for file in `cd $(top_builddir)/$(SVGOUTDIR)/$$size; find . -name "*.png"`; do \
+		for file in `cd $(top_srcdir)/$(SVGOUTDIR)/$$size && find . -name "*.png"`; do \
 			rm -f $(DESTDIR)$(themedir)/$$size/$$file; \
 		done; \
 	done



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