1 | -include config.mak |
---|
2 | |
---|
3 | VERSION = 0.7.0 |
---|
4 | # latest stable |
---|
5 | BITLBEE_VERSION = 1.2.3 |
---|
6 | |
---|
7 | AMPATH = $(shell grep automake- $(shell which automake)|sed "s|.*'\(.*\)';|\1|") |
---|
8 | |
---|
9 | ifeq ($(BITLBEE),yes) |
---|
10 | all: skype.$(SHARED_EXT) |
---|
11 | else |
---|
12 | all: |
---|
13 | endif |
---|
14 | |
---|
15 | skype.$(SHARED_EXT): skype.c config.mak |
---|
16 | ifeq ($(BITLBEE),yes) |
---|
17 | $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS) |
---|
18 | endif |
---|
19 | |
---|
20 | install: all |
---|
21 | ifeq ($(BITLBEE),yes) |
---|
22 | $(INSTALL) -d $(DESTDIR)$(plugindir) |
---|
23 | $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir) |
---|
24 | endif |
---|
25 | ifeq ($(SKYPE4PY),yes) |
---|
26 | $(INSTALL) -d $(DESTDIR)$(bindir) |
---|
27 | $(INSTALL) -d $(DESTDIR)$(sysconfdir) |
---|
28 | $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped |
---|
29 | perl -p -i -e 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped |
---|
30 | $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
31 | perl -p -i -e 's|\$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
32 | $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir) |
---|
33 | endif |
---|
34 | |
---|
35 | client: client.c |
---|
36 | |
---|
37 | autogen: configure.ac |
---|
38 | cp $(AMPATH)/install-sh ./ |
---|
39 | autoconf |
---|
40 | |
---|
41 | clean: |
---|
42 | rm -f skype.$(SHARED_EXT) |
---|
43 | |
---|
44 | distclean: clean |
---|
45 | rm -f config.log config.mak config.status |
---|
46 | |
---|
47 | autoclean: distclean |
---|
48 | rm -rf aclocal.m4 autom4te.cache configure install-sh |
---|
49 | |
---|
50 | # take this from the kernel |
---|
51 | check: |
---|
52 | perl checkpatch.pl --no-tree --file skype.c |
---|
53 | |
---|
54 | dist: |
---|
55 | git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf - |
---|
56 | mkdir -p bitlbee-skype-$(VERSION) |
---|
57 | git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog |
---|
58 | make -C bitlbee-skype-$(VERSION) autogen |
---|
59 | tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION) |
---|
60 | rm -rf bitlbee-skype-$(VERSION) |
---|
61 | |
---|
62 | release: |
---|
63 | git tag $(VERSION) |
---|
64 | $(MAKE) dist |
---|
65 | gpg --comment "See http://vmiklos.hu/gpg/ for info" \ |
---|
66 | -ba bitlbee-skype-$(VERSION).tar.gz |
---|
67 | |
---|
68 | doc: HEADER.html Changelog |
---|
69 | |
---|
70 | HEADER.html: README Makefile |
---|
71 | asciidoc -a toc -a numbered -a sectids -o HEADER.html README |
---|
72 | sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html |
---|
73 | sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html |
---|
74 | |
---|
75 | Changelog: .git/refs/heads/master |
---|
76 | git log --no-merges |git name-rev --tags --stdin >Changelog |
---|