1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
.POSIX: PREFIX = /usr DPREFIX = ${DESTDIR}${PREFIX} MANDIR = ${DPREFIX}/share/man all: mast mast: mast.go go build install: mkdir -p ${DPREFIX}/bin ${MANDIR}/man1 cp mast ${DPREFIX}/bin cp mast.1 ${MANDIR}/man1 clean: rm -f mast