File: Makefile

package info (click to toggle)
pidgin-microblog 0.3.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 420 kB
  • ctags: 559
  • sloc: ansic: 4,453; makefile: 179
file content (57 lines) | stat: -rw-r--r-- 1,688 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
54
55
56
57
#
# Top-level makefile
#

include version.mak


SUBDIRS = microblog twitgin certs
DISTFILES = COPYING global.mak Makefile mbpurple.nsi README.txt version.mak subversion.mak

.PHONY: all install clean build distdir

default: subversion build

build install uninstall clean : 
	for dir in $(SUBDIRS); do \
		make -C "$$dir" $@ || exit 1; \
	done

distdir: 
	rm -rf $(PACKAGE)-$(VERSION)$(SUBVERSION)
	mkdir $(PACKAGE)-$(VERSION)$(SUBVERSION)
	for dir in $(SUBDIRS); do \
		make -C "$$dir" dist; \
	done
	cp -f $(DISTFILES) $(PACKAGE)-$(VERSION)$(SUBVERSION)/

dist: distdir
	tar -zcvf $(PACKAGE)-$(VERSION)$(SUBVERSION).tar.gz $(PACKAGE)-$(VERSION)$(SUBVERSION)
	rm -rf $(PACKAGE)-$(VERSION)$(SUBVERSION)

windist: pidgin-microblog-$(VERSION)$(SUBVERSION).exe

pidgin-microblog.exe: build mbpurple.nsi
	makensis /DPRODUCT_VERSION=$(VERSION)$(SUBVERSION) mbpurple.nsi

pidgin-microblog-$(VERSION)$(SUBVERSION).exe: pidgin-microblog.exe
	mv -f $< $@
	
zipdist: pidgin-microblog-$(VERSION)$(SUBVERSION).zip

pidgin-microblog.zip: build
	rm -rf $(PACKAGE)-$(VERSION)$(SUBVERSION)
	mkdir $(PACKAGE)-$(VERSION)$(SUBVERSION)
	PURPLE_PLUGIN_DIR=$(PWD)/$(PACKAGE)-$(VERSION)$(SUBVERSION)/plugins && \
		PURPLE_INSTALL_DIR=$(PWD)/$(PACKAGE)-$(VERSION)$(SUBVERSION) && \
		mkdir -p $$PURPLE_PLUGIN_DIR && \
		for dir in $(SUBDIRS); do \
			make -C "$$dir" install PURPLE_INSTALL_DIR=$$PURPLE_INSTALL_DIR PURPLE_PLUGIN_DIR=$$PURPLE_PLUGIN_DIR; \
		done
	zip -r $@ $(PACKAGE)-$(VERSION)$(SUBVERSION)
	rm -rf $(PACKAGE)-$(VERSION)$(SUBVERSION)

pidgin-microblog-$(VERSION)$(SUBVERSION).zip: pidgin-microblog.zip
	mv -f $< $@

include subversion.mak