1 | -include config.mak |
---|
2 | |
---|
3 | VERSION = 0.6.0 |
---|
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 | skype.$(SHARED_EXT): skype.c config.mak |
---|
10 | ifeq ($(BITLBEE),yes) |
---|
11 | $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS) |
---|
12 | endif |
---|
13 | |
---|
14 | install: skype.$(SHARED_EXT) skyped.py |
---|
15 | ifeq ($(BITLBEE),yes) |
---|
16 | $(INSTALL) -d $(DESTDIR)$(plugindir) |
---|
17 | $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir) |
---|
18 | endif |
---|
19 | ifeq ($(SKYPE4PY),yes) |
---|
20 | $(INSTALL) -d $(DESTDIR)$(bindir) |
---|
21 | $(INSTALL) -d $(DESTDIR)$(sysconfdir) |
---|
22 | $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped |
---|
23 | sed -i 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped |
---|
24 | $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
25 | sed -i 's|$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
26 | $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir) |
---|
27 | endif |
---|
28 | |
---|
29 | client: client.c |
---|
30 | |
---|
31 | autogen: configure.ac |
---|
32 | cp /usr/share/automake-$(AMVERSION)/install-sh ./ |
---|
33 | autoconf |
---|
34 | |
---|
35 | clean: |
---|
36 | rm -f skype.$(SHARED_EXT) |
---|
37 | |
---|
38 | distclean: clean |
---|
39 | rm -f config.log config.mak config.status |
---|
40 | |
---|
41 | autoclean: distclean |
---|
42 | rm -rf aclocal.m4 autom4te.cache configure install-sh |
---|
43 | |
---|
44 | dist: |
---|
45 | git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf - |
---|
46 | mkdir -p bitlbee-skype-$(VERSION) |
---|
47 | git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog |
---|
48 | make -C bitlbee-skype-$(VERSION) autogen |
---|
49 | tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION) |
---|
50 | rm -rf bitlbee-skype-$(VERSION) |
---|
51 | |
---|
52 | release: |
---|
53 | git tag $(VERSION) |
---|
54 | $(MAKE) dist |
---|
55 | gpg --comment "See http://vmiklos.hu/gpg/ for info" \ |
---|
56 | -ba bitlbee-skype-$(VERSION).tar.gz |
---|
57 | |
---|
58 | doc: HEADER.html Changelog |
---|
59 | |
---|
60 | HEADER.html: README Makefile |
---|
61 | asciidoc -a toc -a numbered -a sectids -o HEADER.html README |
---|
62 | sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html |
---|
63 | sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html |
---|
64 | |
---|
65 | Changelog: .git/refs/heads/master |
---|
66 | git log --no-merges |git name-rev --tags --stdin >Changelog |
---|