diff pidgin/pixmaps/Makefile.mingw @ 22589:8b952cb84f45

Ugly hackery to support INSTALL_PIXMAPS for the win32 build.
author Daniel Atallah <daniel.atallah@gmail.com>
date Mon, 31 Mar 2008 22:01:43 +0000
parents 055e1abac7cf
children 78c64f7c598f
line wrap: on
line diff
--- a/pidgin/pixmaps/Makefile.mingw	Mon Mar 31 17:19:02 2008 +0000
+++ b/pidgin/pixmaps/Makefile.mingw	Mon Mar 31 22:01:43 2008 +0000
@@ -8,11 +8,11 @@
 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
 
 datadir := $(PIDGIN_INSTALL_DIR)
-include ./Makefile.am
+-include ./Makefile.am.mingw
 
 .PHONY: install clean
 
-install:
+install: ./Makefile.am.mingw
 	if test '$(SUBDIRS)'; then \
 	  list='$(SUBDIRS)'; for subdir in $$list; do \
 	    $(MAKE) -C $$subdir -f $(MINGW_MAKEFILE) install || exit 1 ;\
@@ -34,9 +34,14 @@
 	  cp $(pidgindistpix_DATA) $(pidgindistpixdir); \
 	fi;
 
-clean:
+clean: ./Makefile.am.mingw
 	if test '$(SUBDIRS)'; then \
 		list='$(SUBDIRS)'; for subdir in $$list; do \
 		$(MAKE) -C $$subdir -f $(MINGW_MAKEFILE) clean;\
 		done; \
 	fi;
+
+./Makefile.am.mingw: ./Makefile.am
+	sed -e 's/^if\ INSTALL_PIXMAPS/ifeq (\$$(INSTALL_PIXMAPS), 1)/' ./Makefile.am > $@
+        include $@
+