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