From 44595618b5d162e8bb8362e3891dc694342d1869 Mon Sep 17 00:00:00 2001 From: boredpasta Date: Mon, 13 Jan 2025 06:39:10 +0200 Subject: Add project files --- Makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..bb98d07 --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +PREFIX = /var/www +CGIBINDIR = cgi-bin +HTDOCSDIR = htdocs/pastanoggin.com + +CGIDIR = ${PREFIX}/${CGIBINDIR} +ROOTDIR = ${PREFIX}/${HTDOCSDIR} + +install: + # perl + install -d ${DISTDIR}${PREFIX}/usr/bin + install -g www -m 755 -o www /usr/bin/perl ${DESTDIR}${PREFIX}/usr/bin + install -d ${DISTDIR}${PREFIX}/usr/lib + install -g www -m 755 -o www /usr/lib/libperl.so.* \ + ${DESTDIR}${PREFIX}/usr/lib + install -g www -m 755 -o www /usr/lib/libm.so.* ${DESTDIR}${PREFIX}/usr/lib + install -g www -m 755 -o www /usr/lib/libc.so.* ${DESTDIR}${PREFIX}/usr/lib + install -d ${DISTDIR}${PREFIX}/usr/libexec + install -g www -m 755 -o www /usr/libexec/ld.so \ + ${DESTDIR}${PREFIX}/usr/libexec + install -d ${DISTDIR}${PREFIX}/usr/libdata/perl5 + # cgi + install -d ${DESTDIR}${CGIDIR} + install -g www -m 0555 -o www perl.cgi ${DESTDIR}${CGIDIR} + # documents + install -d ${DESTDIR}${ROOTDIR}/docs + install -g www -m 0555 -o www docs/* ${DESTDIR}${ROOTDIR}/docs + # static files + install -d ${DESTDIR}${ROOTDIR}/static + install -g www -m 0555 -o www static/* ${DESTDIR}${ROOTDIR}/static + +uninstall: + rm -f ${DESTDIR}${PREFIX}/cgi-bin/perl.cgi -- cgit v1.2.3