pkg-get/Makefile
2020-08-12 12:04:02 +02:00

35 lines
1000 B
Makefile

NAME=pkg-get
VERSION="0.4.6"
PREFIX=/usr
CFGDIR=/etc
MANDIR=/usr/share/man
all:
@echo "Use 'make install' to install pkg-get"
man:
#makeman doc/pkg-get.8.txt
#makeman doc/pkg-repgen.8.txt
#man2ps doc/pkg-get.8 | ps2pdf14 - > doc/pkg-get.pdf
dist: man
rm -rf ${NAME}-${VERSION}
mkdir ${NAME}-${VERSION}
cp -r doc scripts Makefile ChangeLog COPYING README TODO ${NAME}-${VERSION}
rm -f ${NAME}-${VERSION}/doc/*.txt
rm -f ${NAME}-${VERSION}/doc/*.pdf
tar cvzf ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}
rm -rf ${NAME}-${VERSION}
install:
install -D -m 755 scripts/pkg-get.pl ${PREFIX}/bin/pkg-get
install -D -m 755 scripts/pkg-repgen.pl ${PREFIX}/bin/pkg-repgen
install -D -m 755 scripts/pkg-get.pl ${PREFIX}/bin/pkg-get
install -D -m 644 doc/pkg-get.8 ${MANDIR}/man8/pkg-get.8
install -D -m 644 doc/pkg-get.conf ${CFGDIR}/pkg-get.conf
install -D -m 644 doc/pkg-repgen.8 ${MANDIR}/man8/pkg-repgen.8
install -D -m 644 doc/pkg-get.8 ${MANDIR}/man8/pkg-get.8