1 | -include config.mak |
---|
2 | |
---|
3 | VERSION = 0.4.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 | $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir) |
---|
19 | |
---|
20 | client: client.c |
---|
21 | |
---|
22 | prepare: configure.ac |
---|
23 | cp /usr/share/automake-$(AMVERSION)/install-sh ./ |
---|
24 | cp /usr/share/aclocal/pkg.m4 aclocal.m4 |
---|
25 | autoconf |
---|
26 | |
---|
27 | clean: |
---|
28 | rm -f skype.$(SHARED_EXT) |
---|
29 | |
---|
30 | distclean: clean |
---|
31 | rm -rf autom4te.cache config.log config.mak config.status |
---|
32 | rm -f configure install-sh aclocal.m4 |
---|
33 | |
---|
34 | dist: |
---|
35 | git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf - |
---|
36 | mkdir -p bitlbee-skype-$(VERSION) |
---|
37 | git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog |
---|
38 | make -C bitlbee-skype-$(VERSION) prepare |
---|
39 | tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION) |
---|
40 | rm -rf bitlbee-skype-$(VERSION) |
---|
41 | |
---|
42 | release: |
---|
43 | git tag $(VERSION) |
---|
44 | $(MAKE) dist |
---|
45 | gpg --comment "See http://ftp.frugalware.org/pub/README.GPG for info" \ |
---|
46 | -ba -u 20F55619 bitlbee-skype-$(VERSION).tar.gz |
---|
47 | |
---|
48 | doc: HEADER.html Changelog |
---|
49 | |
---|
50 | HEADER.html: README Makefile |
---|
51 | ln -s README HEADER.txt |
---|
52 | asciidoc -a toc -a numbered -a sectids HEADER.txt |
---|
53 | sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html |
---|
54 | rm HEADER.txt |
---|
55 | |
---|
56 | Changelog: .git/refs/heads/master |
---|
57 | git log --no-merges |git name-rev --tags --stdin >Changelog |
---|