Makefile.mingw
author John Bailey <rekkanoryo@rekkanoryo.org>
Sun Aug 30 20:10:58 2009 -0400 (2009-08-30)
changeset 1046 93089a7ce7f6
parent 938 9d6ab4810f6b
parent 946 415cf2578ad5
child 1071 03159218e6f2
permissions -rw-r--r--
Merge
     1 #
     2 # Makefile.mingw
     3 #
     4 # Description: Makefile for win32 (mingw) purple plugin pack
     5 #
     6 
     7 PIDGIN_TREE_TOP ?= ../../..
     8 include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak
     9 
    10 VERSION := $(shell cat ./VERSION)
    11 
    12 ALL_PLUGINS_LIST := $(shell python plugin_pack.py build_dirs purple,pidgin,gtkspell,aspell all)
    13 
    14 comma:= ,
    15 empty:=
    16 space:= $(empty) $(empty)
    17 
    18 ALL_PLUGINS := $(subst $(comma),$(space),$(ALL_PLUGINS_LIST))
    19 
    20 all:
    21 	list='$(ALL_PLUGINS)'; for subdir in $$list; do \
    22 	  if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \
    23 	    $(MAKE) -C $$subdir -f Makefile.mingw || exit 1; \
    24 	  fi; fi; \
    25 	done;
    26 
    27 install: all
    28 	list='$(ALL_PLUGINS)'; for subdir in $$list; do \
    29 	  if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \
    30 	    $(MAKE) -C $$subdir -f Makefile.mingw install || exit 1;\
    31 	  fi; fi; \
    32 	done;
    33 
    34 installer: all
    35 	$(MAKENSIS) -DPP_VERSION="$(VERSION)" plugin-pack-installer.nsi
    36  
    37 clean:
    38 	list='$(ALL_PLUGINS)'; for subdir in $$list; do \
    39 	  if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \
    40 	    $(MAKE) -C $$subdir -f Makefile.mingw clean || exit 1;\
    41 	  fi; fi; \
    42 	done; \
    43 	rm -rf pp_config.h win32-dist purple-plugin_pack*.zip
    44 
    45 install_zip:
    46 	list='$(ALL_PLUGINS)'; for subdir in $$list; do \
    47 	  if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \
    48 	    $(MAKE) -C $$subdir -f Makefile.mingw install_zip || exit 1;\
    49 	  fi; fi; \
    50 	done; \
    51 	pushd win32-dist; \
    52 	zip ../purple-plugin_pack-$(VERSION).zip *.dll; \
    53 	popd