File: Makefile.mingw

package info (click to toggle)
purple-plugin-pack 2.7.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,176 kB
  • ctags: 3,409
  • sloc: ansic: 38,210; sh: 11,016; makefile: 1,555; python: 400
file content (53 lines) | stat: -rw-r--r-- 1,510 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#
# Makefile.mingw
#
# Description: Makefile for win32 (mingw) purple plugin pack
#

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

VERSION := $(shell cat ./VERSION)

ALL_PLUGINS_LIST := $(shell python plugin_pack.py build_dirs purple,pidgin,gtkspell,enchant,cairo,pango,json-glib all)

comma:= ,
empty:=
space:= $(empty) $(empty)

ALL_PLUGINS := $(subst $(comma),$(space),$(ALL_PLUGINS_LIST))

all:
	list='$(ALL_PLUGINS)'; for subdir in $$list; do \
	  if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \
	    $(MAKE) -C $$subdir -f Makefile.mingw || exit 1; \
	  fi; fi; \
	done;

install: all
	list='$(ALL_PLUGINS)'; for subdir in $$list; do \
	  if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \
	    $(MAKE) -C $$subdir -f Makefile.mingw install || exit 1;\
	  fi; fi; \
	done;

installer: all
	$(MAKENSIS) -DPP_VERSION="$(VERSION)" plugin-pack-installer.nsi
 
clean:
	list='$(ALL_PLUGINS)'; for subdir in $$list; do \
	  if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \
	    $(MAKE) -C $$subdir -f Makefile.mingw clean || exit 1;\
	  fi; fi; \
	done; \
	rm -rf pp_config.h win32-dist purple-plugin_pack*.zip

install_zip:
	list='$(ALL_PLUGINS)'; for subdir in $$list; do \
	  if test -d $$subdir; then if test -e $$subdir/Makefile.mingw; then \
	    $(MAKE) -C $$subdir -f Makefile.mingw install_zip || exit 1;\
	  fi; fi; \
	done; \
	pushd win32-dist; \
	zip ../purple-plugin_pack-$(VERSION).zip *.dll; \
	popd