summaryrefslogtreecommitdiff
blob: 885ae368fe2f09b4efa43b354df2a2f45bbceb95 (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 ChangeLog 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 en_GB.UTF-8 -Ni $(MAN_INCLUDE) ./python-updater -o $@
	sed -i -e 's/ in the manpage//' $@

.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 dev.gentoo.org:/space/distfiles-local/$(TARBALL)