view pidgin/pixmaps/Makefile.mingw @ 29846:414886d7a51c

propagate from branch 'im.pidgin.pidgin' (head d6650bbce66004cf205e9f60ef96626783db72e8) to branch 'im.pidgin.cpw.rekkanoryo.icqxstatus' (head 4491e1af4a9262cd67501541c84475c417386ced)
author Richard Laager <rlaager@wiktel.com>
date Wed, 26 Nov 2008 22:14:34 +0000
parents 78c64f7c598f
children eec2900b0eee
line wrap: on
line source

#
# Makefile.mingw
#
# Description: Makefile for win32 (mingw) version of Pidgin pixmaps
#

PIDGIN_TREE_TOP := ../..
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak

datadir := $(PIDGIN_INSTALL_DIR)
-include ./Makefile.am.mingw

.PHONY: install clean

install: ./Makefile.am.mingw
	if test '$(SUBDIRS)'; then \
	  list='$(SUBDIRS)'; for subdir in $$list; do \
	    $(MAKE) -C $$subdir -f $(MINGW_MAKEFILE) install || exit 1 ;\
	  done; \
	fi;
	if test '$(nobase_dist_pidginpixmap_DATA)'; then \
	  list='$(nobase_dist_pidginpixmap_DATA)'; for file in $$list; do \
	    dir=`dirname $$file`; \
	    mkdir -p $(pidginpixmapdir)/$$dir; \
	    cp $$file $(pidginpixmapdir)/$$dir/; \
	  done; \
	fi;
	if test '$(pidginbuttonpix_DATA)'; then \
	  mkdir -p $(pidginbuttonpixdir); \
	  cp $(pidginbuttonpix_DATA) $(pidginbuttonpixdir); \
	fi;
	if test '$(pidgindistpix_DATA)'; then \
	  mkdir -p $(pidgindistpixdir); \
	  cp $(pidgindistpix_DATA) $(pidgindistpixdir); \
	fi;

clean: ./Makefile.am.mingw
	if test '$(SUBDIRS)'; then \
		list='$(SUBDIRS)'; for subdir in $$list; do \
		$(MAKE) -C $$subdir -f $(MINGW_MAKEFILE) clean;\
		done; \
	fi;
	rm -f ./Makefile.am.mingw

./Makefile.am.mingw: ./Makefile.am
	sed -e 's/^if\ INSTALL_PIXMAPS/ifeq (\$$(INSTALL_PIXMAPS), 1)/' ./Makefile.am > $@
        include $@