touch with templates
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
tmpl/makefile

20 lines
477 B

VERSION = 0.1
PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
tmpl: tmpl.sh
install: tmpl
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f tmpl ${DESTDIR}${PREFIX}/bin/tmpl
chmod 755 ${DESTDIR}${PREFIX}/bin/tmpl
mkdir -p ${DESTDIR}${MANPREFIX}/man1
sed "s/VERSION/${VERSION}/g" < tmpl.1 > ${DESTDIR}${MANPREFIX}/man1/tmpl.1
chmod 644 ${DESTDIR}${MANPREFIX}/man1/tmpl.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/tmpl\
${DESTDIR}${MANPREFIX}/man1/tmpl.1
clean:
rm -f tmpl