[bff265c] | 1 | -include config.mak |
---|
[f06e3ac] | 2 | |
---|
[129a6c5] | 3 | VERSION = 0.7.1 |
---|
[68c162b] | 4 | # latest stable |
---|
| 5 | BITLBEE_VERSION = 1.2.3 |
---|
[05c1bed] | 6 | |
---|
[c1bf7c5] | 7 | AMPATH = $(shell grep automake- $(shell which automake)|sed "s|.*'\(.*\)';|\1|") |
---|
[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 |
---|
[c1bf7c5] | 38 | cp $(AMPATH)/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 | |
---|
[16304ab] | 50 | # take this from the kernel |
---|
| 51 | check: |
---|
| 52 | perl checkpatch.pl --no-tree --file skype.c |
---|
| 53 | |
---|
[05c1bed] | 54 | dist: |
---|
[68796a1] | 55 | git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf - |
---|
[05c1bed] | 56 | mkdir -p bitlbee-skype-$(VERSION) |
---|
| 57 | git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog |
---|
[afeb517] | 58 | make -C bitlbee-skype-$(VERSION) autogen |
---|
[1c3f19f] | 59 | tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION) |
---|
[05c1bed] | 60 | rm -rf bitlbee-skype-$(VERSION) |
---|
| 61 | |
---|
| 62 | release: |
---|
| 63 | git tag $(VERSION) |
---|
| 64 | $(MAKE) dist |
---|
[3839517] | 65 | gpg --comment "See http://vmiklos.hu/gpg/ for info" \ |
---|
| 66 | -ba bitlbee-skype-$(VERSION).tar.gz |
---|
[05c1bed] | 67 | |
---|
[e23a46e] | 68 | doc: HEADER.html Changelog |
---|
[d1c9e35] | 69 | |
---|
[ff99090] | 70 | HEADER.html: README Makefile |
---|
[71dd27d] | 71 | asciidoc -a toc -a numbered -a sectids -o HEADER.html README |
---|
[3b495c0] | 72 | sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html |
---|
[1f59f2f] | 73 | sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html |
---|
[e23a46e] | 74 | |
---|
| 75 | Changelog: .git/refs/heads/master |
---|
[7e600c9] | 76 | git log --no-merges |git name-rev --tags --stdin >Changelog |
---|