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