| 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-- |
| jbailey@22 | 1 |
# |
| jbailey@22 | 2 |
# Makefile.mingw |
| jbailey@22 | 3 |
# |
| datallah@244 | 4 |
# Description: Makefile for win32 (mingw) purple plugin pack |
| jbailey@22 | 5 |
# |
| jbailey@22 | 6 |
|
| grim@938 | 7 |
PIDGIN_TREE_TOP ?= ../../.. |
| grim@938 | 8 |
include $(PIDGIN_TREE_TOP)/libpurple/win32/global.mak |
| grim@938 | 9 |
|
| datallah@136 | 10 |
VERSION := $(shell cat ./VERSION) |
| jbailey@22 | 11 |
|
| rekkanoryo@946 | 12 |
ALL_PLUGINS_LIST := $(shell python plugin_pack.py build_dirs purple,pidgin,gtkspell,aspell all) |
| datallah@856 | 13 |
|
| datallah@856 | 14 |
comma:= , |
| datallah@856 | 15 |
empty:= |
| datallah@856 | 16 |
space:= $(empty) $(empty) |
| datallah@856 | 17 |
|
| datallah@856 | 18 |
ALL_PLUGINS := $(subst $(comma),$(space),$(ALL_PLUGINS_LIST)) |
| datallah@856 | 19 |
|
| jbailey@22 | 20 |
all: |
| datallah@856 | 21 |
list='$(ALL_PLUGINS)'; for subdir in $$list; do \ |
| datallah@856 | 22 |
if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \ |
| datallah@315 | 23 |
$(MAKE) -C $$subdir -f Makefile.mingw || exit 1; \ |
| datallah@856 | 24 |
fi; fi; \ |
| datallah@136 | 25 |
done; |
| jbailey@22 | 26 |
|
| jbailey@22 | 27 |
install: all |
| datallah@856 | 28 |
list='$(ALL_PLUGINS)'; for subdir in $$list; do \ |
| datallah@856 | 29 |
if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \ |
| datallah@315 | 30 |
$(MAKE) -C $$subdir -f Makefile.mingw install || exit 1;\ |
| datallah@856 | 31 |
fi; fi; \ |
| datallah@136 | 32 |
done; |
| jbailey@22 | 33 |
|
| grim@938 | 34 |
installer: all |
| grim@938 | 35 |
$(MAKENSIS) -DPP_VERSION="$(VERSION)" plugin-pack-installer.nsi |
| grim@938 | 36 |
|
| jbailey@22 | 37 |
clean: |
| datallah@856 | 38 |
list='$(ALL_PLUGINS)'; for subdir in $$list; do \ |
| datallah@856 | 39 |
if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \ |
| datallah@315 | 40 |
$(MAKE) -C $$subdir -f Makefile.mingw clean || exit 1;\ |
| datallah@856 | 41 |
fi; fi; \ |
| datallah@136 | 42 |
done; \ |
| datallah@244 | 43 |
rm -rf pp_config.h win32-dist purple-plugin_pack*.zip |
| datallah@136 | 44 |
|
| datallah@136 | 45 |
install_zip: |
| datallah@856 | 46 |
list='$(ALL_PLUGINS)'; for subdir in $$list; do \ |
| datallah@856 | 47 |
if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \ |
| datallah@315 | 48 |
$(MAKE) -C $$subdir -f Makefile.mingw install_zip || exit 1;\ |
| datallah@856 | 49 |
fi; fi; \ |
| datallah@136 | 50 |
done; \ |
| datallah@315 | 51 |
pushd win32-dist; \ |
| datallah@244 | 52 |
zip ../purple-plugin_pack-$(VERSION).zip *.dll; \ |
| datallah@315 | 53 |
popd |