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