summaryrefslogtreecommitdiff
blob: cb9e2f20cfbe68c514b0a468c4b661dd4ad46120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Makefile for python-updater
MAN_INCLUDE=man.include
VERSION=$(shell ./python-updater -V)
FILES=AUTHORS python-updater python-updater.1
PKGDIR=python-updater-$(VERSION)
TARBALL=$(PKGDIR).tar.bz2

all: python-updater.1 tarball

python-updater.1: python-updater $(MAN_INCLUDE)
	help2man -L C -Ni $(MAN_INCLUDE) ./python-updater -o $@
	sed -i -e 's/ in the manpage//' \
		-e 's/\*[[:space:]]\([[:alpha:]]*\).*/\1 /' $@

.PHONY: all clean tarball upload
clean:
	rm -fr python-updater.1 *.bz2 $(PKGDIR) || true
tarball:
	mkdir $(PKGDIR)
	cp $(FILES) $(PKGDIR)
	tar -cjf $(TARBALL) $(PKGDIR)
	rm -fr $(PKGDIR)
upload:
	scp $(TARBALL) dev.gentoo.org:/space/distfiles-local
	ssh dev.gentoo.org chmod ug+rw /space/distfiles-local/$(TARBALL)