blob: 9966b717cc6a038be9c6b881d9132a99b5c711cc (
plain)
1 NAME=pkg-get
2 VERSION="0.4.6"
3
4 PREFIX=/usr
5 CFGDIR=/etc
6 MANDIR=/usr/share/man
7
8 all:
9 @echo "Use 'make install' to install pkg-get"
10
11 man:
12 #makeman doc/pkg-get.8.txt
13 #makeman doc/pkg-repgen.8.txt
14 #man2ps doc/pkg-get.8 | ps2pdf14 - > doc/pkg-get.pdf
15
16 dist: man
17 rm -rf ${NAME}-${VERSION}
18 mkdir ${NAME}-${VERSION}
19 cp -r doc scripts Makefile ChangeLog COPYING README TODO ${NAME}-${VERSION}
20 rm -f ${NAME}-${VERSION}/doc/*.txt
21 rm -f ${NAME}-${VERSION}/doc/*.pdf
22 tar cvzf ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}
23 rm -rf ${NAME}-${VERSION}
24
25 install:
26
27 install -D -m 755 scripts/pkg-get.pl ${PREFIX}/bin/pkg-get
28 install -D -m 755 scripts/pkg-repgen.pl ${PREFIX}/bin/pkg-repgen
29 install -D -m 755 scripts/pkg-get.pl ${PREFIX}/bin/pkg-get
30 install -D -m 644 doc/pkg-get.8 ${MANDIR}/man8/pkg-get.8
31 install -D -m 644 doc/pkg-get.conf ${CFGDIR}/pkg-get.conf
32 install -D -m 644 doc/pkg-repgen.8 ${MANDIR}/man8/pkg-repgen.8
33 install -D -m 644 doc/pkg-get.8 ${MANDIR}/man8/pkg-get.8
|