1 | -include config.mak |
---|
2 | |
---|
3 | VERSION = 0.6.1 |
---|
4 | # oldest supported one |
---|
5 | BITLBEE_VERSION = 1.2.2 |
---|
6 | |
---|
7 | AMVERSION = $(shell automake --version|sed 's/.* //;s/\([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/;q') |
---|
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 | sed -i 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped |
---|
30 | $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
31 | sed -i '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 /usr/share/automake-$(AMVERSION)/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 | dist: |
---|
51 | git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf - |
---|
52 | mkdir -p bitlbee-skype-$(VERSION) |
---|
53 | git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog |
---|
54 | make -C bitlbee-skype-$(VERSION) autogen |
---|
55 | tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION) |
---|
56 | rm -rf bitlbee-skype-$(VERSION) |
---|
57 | |
---|
58 | release: |
---|
59 | git tag $(VERSION) |
---|
60 | $(MAKE) dist |
---|
61 | gpg --comment "See http://vmiklos.hu/gpg/ for info" \ |
---|
62 | -ba bitlbee-skype-$(VERSION).tar.gz |
---|
63 | |
---|
64 | doc: HEADER.html Changelog |
---|
65 | |
---|
66 | HEADER.html: README Makefile |
---|
67 | asciidoc -a toc -a numbered -a sectids -o HEADER.html README |
---|
68 | sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html |
---|
69 | sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html |
---|
70 | |
---|
71 | Changelog: .git/refs/heads/master |
---|
72 | git log --no-merges |git name-rev --tags --stdin >Changelog |
---|