summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2024-05-26 22:41:56 +0200
committerStefan Kreutz <mail@skreutz.com>2024-05-26 22:41:56 +0200
commit44bf77a12ffd86294054c6e92077ea31f3613360 (patch)
tree5b05aee2c9ce71da96eb2b88581bb2c646192bed /Makefile
parenta24a3f38fc297479873cdbe5c93fec4226e2fdbf (diff)
downloadtemp-postgres-main.tar
Port to Arch LinuxHEADmain
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f4d88d4..ede21d6 100644
--- a/Makefile
+++ b/Makefile
@@ -10,12 +10,15 @@ MANDIR = man/man
MANOWN = root
MANGRP = root
MANMODE = 444
+MANGZ = 0
include config.mk
all:
+ gzip -c temp-postgres.1 >temp-postgres.1.gz
clean:
+ rm temp-postgres.1.gz
lint:
shellcheck -a temp-postgres.sh
@@ -24,8 +27,13 @@ lint:
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
+ if [ ${MANGZ} -eq 1 ] ; then \
+ ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} temp-postgres.1.gz ${DESTDIR}${PREFIX}/${MANDIR}1/temp-postgres.1.gz ; \
+ else \
+ ${INSTALL} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE} temp-postgres.1 ${DESTDIR}${PREFIX}/${MANDIR}1/temp-postgres.1 ; \
+ fi
uninstall:
rm -f ${DESTDIR}${PREFIX}/${BINDIR}/temp-postgres
rm -f ${DESTDIR}${PREFIX}/${MANDIR}1/temp-postgres.1
+ rm -f ${DESTDIR}${PREFIX}/${MANDIR}1/temp-postgres.1.gz
Generated by cgit. See skreutz.com for my tech blog and contact information.