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