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