[bff265c] | 1 | -include config.mak |
---|
[f06e3ac] | 2 | |
---|
[843fbc9] | 3 | VERSION = 0.8.0 |
---|
[398eb78] | 4 | DATE := $(shell date +%Y-%m-%d) |
---|
[68c162b] | 5 | # latest stable |
---|
| 6 | BITLBEE_VERSION = 1.2.3 |
---|
[05c1bed] | 7 | |
---|
[c1bf7c5] | 8 | AMPATH = $(shell grep automake- $(shell which automake)|sed "s|.*'\(.*\)';|\1|") |
---|
[3fd8b71] | 9 | |
---|
[93f4dac] | 10 | ifeq ($(BITLBEE),yes) |
---|
[398eb78] | 11 | all: skype.$(SHARED_EXT) skyped.1 |
---|
[93f4dac] | 12 | else |
---|
[398eb78] | 13 | all: skyped.1 |
---|
[93f4dac] | 14 | endif |
---|
| 15 | |
---|
[df1a59d4] | 16 | skype.$(SHARED_EXT): skype.c config.mak |
---|
[752a591] | 17 | ifeq ($(BITLBEE),yes) |
---|
[df1a59d4] | 18 | $(CC) $(CFLAGS) $(SHARED_FLAGS) -o skype.$(SHARED_EXT) skype.c $(LDFLAGS) |
---|
[752a591] | 19 | endif |
---|
[f06e3ac] | 20 | |
---|
[93f4dac] | 21 | install: all |
---|
[752a591] | 22 | ifeq ($(BITLBEE),yes) |
---|
[bbf1050] | 23 | $(INSTALL) -d $(DESTDIR)$(plugindir) |
---|
[69939608] | 24 | $(INSTALL) skype.$(SHARED_EXT) $(DESTDIR)$(plugindir) |
---|
[752a591] | 25 | endif |
---|
[b414e30] | 26 | ifeq ($(SKYPE4PY),yes) |
---|
[f080961] | 27 | $(INSTALL) -d $(DESTDIR)$(bindir) |
---|
[a3262d1e] | 28 | $(INSTALL) -d $(DESTDIR)$(sysconfdir) |
---|
[f080961] | 29 | $(INSTALL) skyped.py $(DESTDIR)$(bindir)/skyped |
---|
[12e1162] | 30 | perl -p -i -e 's|/usr/local/etc/skyped|$(sysconfdir)|' $(DESTDIR)$(bindir)/skyped |
---|
[a3262d1e] | 31 | $(INSTALL) -m644 skyped.conf.dist $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
[12e1162] | 32 | perl -p -i -e 's|\$${prefix}|$(prefix)|' $(DESTDIR)$(sysconfdir)/skyped.conf |
---|
[55664fc] | 33 | $(INSTALL) -m644 skyped.cnf $(DESTDIR)$(sysconfdir) |
---|
[69939608] | 34 | endif |
---|
[bbf1050] | 35 | |
---|
[dfec37e] | 36 | client: client.c |
---|
| 37 | |
---|
[afeb517] | 38 | autogen: configure.ac |
---|
[c1bf7c5] | 39 | cp $(AMPATH)/install-sh ./ |
---|
[bff265c] | 40 | autoconf |
---|
| 41 | |
---|
[f06e3ac] | 42 | clean: |
---|
[df1a59d4] | 43 | rm -f skype.$(SHARED_EXT) |
---|
[0c60f96] | 44 | |
---|
[bff265c] | 45 | distclean: clean |
---|
[e06f408] | 46 | rm -f config.log config.mak config.status |
---|
| 47 | |
---|
| 48 | autoclean: distclean |
---|
| 49 | rm -rf aclocal.m4 autom4te.cache configure install-sh |
---|
[bff265c] | 50 | |
---|
[16304ab] | 51 | # take this from the kernel |
---|
| 52 | check: |
---|
| 53 | perl checkpatch.pl --no-tree --file skype.c |
---|
| 54 | |
---|
[05c1bed] | 55 | dist: |
---|
[68796a1] | 56 | git archive --format=tar --prefix=bitlbee-skype-$(VERSION)/ HEAD | tar xf - |
---|
[05c1bed] | 57 | mkdir -p bitlbee-skype-$(VERSION) |
---|
| 58 | git log --no-merges |git name-rev --tags --stdin > bitlbee-skype-$(VERSION)/Changelog |
---|
[afeb517] | 59 | make -C bitlbee-skype-$(VERSION) autogen |
---|
[1c3f19f] | 60 | tar czf bitlbee-skype-$(VERSION).tar.gz bitlbee-skype-$(VERSION) |
---|
[05c1bed] | 61 | rm -rf bitlbee-skype-$(VERSION) |
---|
| 62 | |
---|
| 63 | release: |
---|
| 64 | git tag $(VERSION) |
---|
| 65 | $(MAKE) dist |
---|
[3839517] | 66 | gpg --comment "See http://vmiklos.hu/gpg/ for info" \ |
---|
| 67 | -ba bitlbee-skype-$(VERSION).tar.gz |
---|
[05c1bed] | 68 | |
---|
[e23a46e] | 69 | doc: HEADER.html Changelog |
---|
[d1c9e35] | 70 | |
---|
[ff99090] | 71 | HEADER.html: README Makefile |
---|
[71dd27d] | 72 | asciidoc -a toc -a numbered -a sectids -o HEADER.html README |
---|
[3b495c0] | 73 | sed -i 's|@VERSION@|$(VERSION)|g' HEADER.html |
---|
[1f59f2f] | 74 | sed -i 's|@BITLBEE_VERSION@|$(BITLBEE_VERSION)|g' HEADER.html |
---|
[e23a46e] | 75 | |
---|
| 76 | Changelog: .git/refs/heads/master |
---|
[7e600c9] | 77 | git log --no-merges |git name-rev --tags --stdin >Changelog |
---|
[398eb78] | 78 | |
---|
| 79 | %.1: %.txt asciidoc.conf |
---|
| 80 | a2x --asciidoc-opts="-f asciidoc.conf" \ |
---|
| 81 | -a bs_version=$(VERSION) -a bs_date=$(DATE) -f manpage $< |
---|