# Portable makefile supporting OpenBSD, FreeBSD, and GNU/Linux. PREFIX = /usr/local INSTALL = install BINDIR = bin BINOWN = root BINGRP = root BINMODE = 555 MANDIR = man/man MANOWN = root MANGRP = root MANMODE = 444 include config.mk all: clean: lint: shellcheck -a temp-postgres.sh mandoc -T lint -W warning temp-postgres.1 -mandoc -T lint -W all temp-postgres.1 install: ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} temp-postgres.sh ${DESTDIR}${PREFIX}/${BINDIR}/temp-postgres ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} temp-postgres.1 ${DESTDIR}${PREFIX}/${MANDIR}1/temp-postgres.1 uninstall: rm -f ${DESTDIR}${PREFIX}/${BINDIR}/temp-postgres rm -f ${DESTDIR}${PREFIX}/${MANDIR}1/temp-postgres.1