[bff265c] | 1 | -include config.mak |
---|
[f06e3ac] | 2 | |
---|
[9765aa6] | 3 | VERSION = 0.6.0 |
---|
[1f59f2f] | 4 | # oldest supported one |
---|
[21978bc] | 5 | BITLBEE_VERSION = 1.2.2 |
---|
[05c1bed] | 6 | |
---|
[5e21e06] | 7 | AMVERSION = $(shell automake --version|sed 's/.* //;s/\([0-9]\+\.[0-9]\+\)\.[0-9]\+/\1/;q') |
---|
[3fd8b71] | 8 | |
---|
[df1a59d4] | 9 | skype.$(SHARED_EXT): skype.c config.mak |
---|
| 10 | $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS) |
---|
[f06e3ac] | 11 | |
---|
[df1a59d4] | 12 | install: skype.$(SHARED_EXT) skyped.py |
---|
[bbf1050] | 13 | $(INSTALL) -d $(DESTDIR)$(plugindir) |
---|
[69939608] | 14 | $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir) |
---|
| 15 | ifeq ($(SKYPED),yes) |
---|
[f080961] | 16 | $(INSTALL) -d $(DESTDIR)$(bindir) |
---|
[a3262d1e] | 17 | $(INSTALL) -d $(DESTDIR)$(sysconfdir) |
---|
[f080961] | 18 | $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped |
---|
[c7304b2] | 19 | sed -i 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped |
---|
[a3262d1e] | 20 | $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
[df13c25] | 21 | sed -i 's|$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
[55664fc] | 22 | $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir) |
---|
[69939608] | 23 | endif |
---|
[bbf1050] | 24 | |
---|
[dfec37e] | 25 | client: client.c |
---|
| 26 | |
---|
[afeb517] | 27 | autogen: configure.ac |
---|
[3fd8b71] | 28 | cp /usr/share/automake-$(AMVERSION)/install-sh ./ |
---|
[bff265c] | 29 | cp /usr/share/aclocal/pkg.m4 aclocal.m4 |
---|
| 30 | autoconf |
---|
| 31 | |
---|
[f06e3ac] | 32 | clean: |
---|
[df1a59d4] | 33 | rm -f skype.$(SHARED_EXT) |
---|
[0c60f96] | 34 | |
---|
[bff265c] | 35 | distclean: clean |
---|
[e06f408] | 36 | rm -f config.log config.mak config.status |
---|
| 37 | |
---|
| 38 | autoclean: distclean |
---|
| 39 | rm -rf aclocal.m4 autom4te.cache configure install-sh |
---|
[bff265c] | 40 | |
---|
[05c1bed] | 41 | dist: |
---|
[68796a1] | 42 | git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf - |
---|
[05c1bed] | 43 | mkdir -p bitlbee-skype-$(VERSION) |
---|
| 44 | git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog |
---|
[afeb517] | 45 | make -C bitlbee-skype-$(VERSION) autogen |
---|
[1c3f19f] | 46 | tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION) |
---|
[05c1bed] | 47 | rm -rf bitlbee-skype-$(VERSION) |
---|
| 48 | |
---|
| 49 | release: |
---|
| 50 | git tag $(VERSION) |
---|
| 51 | $(MAKE) dist |
---|
[3839517] | 52 | gpg --comment "See http://vmiklos.hu/gpg/ for info" \ |
---|
| 53 | -ba bitlbee-skype-$(VERSION).tar.gz |
---|
[05c1bed] | 54 | |
---|
[e23a46e] | 55 | doc: HEADER.html Changelog |
---|
[d1c9e35] | 56 | |
---|
[ff99090] | 57 | HEADER.html: README Makefile |
---|
[71dd27d] | 58 | asciidoc -a toc -a numbered -a sectids -o HEADER.html README |
---|
[3b495c0] | 59 | sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html |
---|
[1f59f2f] | 60 | sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html |
---|
[e23a46e] | 61 | |
---|
| 62 | Changelog: .git/refs/heads/master |
---|
[7e600c9] | 63 | git log --no-merges |git name-rev --tags --stdin >Changelog |
---|