[bff265c] | 1 | -include config.mak |
---|
[f06e3ac] | 2 | |
---|
[8cd185c] | 3 | VERSION = 0.5.0 |
---|
[05c1bed] | 4 | |
---|
[5e21e06] | 5 | AMVERSION = $(shell automake --version|sed 's/.* //;s/\([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/;q') |
---|
[3fd8b71] | 6 | |
---|
[df1a59d4] | 7 | skype.$(SHARED_EXT): skype.c config.mak |
---|
| 8 | $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS) |
---|
[f06e3ac] | 9 | |
---|
[df1a59d4] | 10 | install: skype.$(SHARED_EXT) skyped.py |
---|
[bbf1050] | 11 | $(INSTALL) -d $(DESTDIR)$(plugindir) |
---|
[f080961] | 12 | $(INSTALL) -d $(DESTDIR)$(bindir) |
---|
[a3262d1e] | 13 | $(INSTALL) -d $(DESTDIR)$(sysconfdir) |
---|
[df1a59d4] | 14 | $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir) |
---|
[f080961] | 15 | $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped |
---|
[c7304b2] | 16 | sed -i 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped |
---|
[a3262d1e] | 17 | $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
[df13c25] | 18 | sed -i 's|$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
[55664fc] | 19 | $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir) |
---|
[bbf1050] | 20 | |
---|
[dfec37e] | 21 | client: client.c |
---|
| 22 | |
---|
[afeb517] | 23 | autogen: configure.ac |
---|
[3fd8b71] | 24 | cp /usr/share/automake-$(AMVERSION)/install-sh ./ |
---|
[bff265c] | 25 | cp /usr/share/aclocal/pkg.m4 aclocal.m4 |
---|
| 26 | autoconf |
---|
| 27 | |
---|
[f06e3ac] | 28 | clean: |
---|
[df1a59d4] | 29 | rm -f skype.$(SHARED_EXT) |
---|
[0c60f96] | 30 | |
---|
[bff265c] | 31 | distclean: clean |
---|
[e06f408] | 32 | rm -f config.log config.mak config.status |
---|
| 33 | |
---|
| 34 | autoclean: distclean |
---|
| 35 | rm -rf aclocal.m4 autom4te.cache configure install-sh |
---|
[bff265c] | 36 | |
---|
[05c1bed] | 37 | dist: |
---|
[68796a1] | 38 | git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf - |
---|
[05c1bed] | 39 | mkdir -p bitlbee-skype-$(VERSION) |
---|
| 40 | git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog |
---|
[afeb517] | 41 | make -C bitlbee-skype-$(VERSION) autogen |
---|
[1c3f19f] | 42 | tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION) |
---|
[05c1bed] | 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 | |
---|
[e23a46e] | 51 | doc: HEADER.html Changelog |
---|
[d1c9e35] | 52 | |
---|
[ff99090] | 53 | HEADER.html: README Makefile |
---|
[71dd27d] | 54 | asciidoc -a toc -a numbered -a sectids -o HEADER.html README |
---|
[3b495c0] | 55 | sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html |
---|
[e23a46e] | 56 | |
---|
| 57 | Changelog: .git/refs/heads/master |
---|
[7e600c9] | 58 | git log --no-merges |git name-rev --tags --stdin >Changelog |
---|