From 5c32709bd7f77a1366dd0ab2813616f40c504517 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 16 Feb 2021 21:19:54 +0100 Subject: Add Makefile and template for the launcher --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2e601a2 --- /dev/null +++ b/Makefile @@ -0,0 +1,18 @@ +INSTALLDIR=/usr/local +DESTDIR=${INSTALLDIR}/genwebsite +JAR=${DESTDIR}/genwebsite.jar +LAUNCHER=genwebsite + +install: + mkdir -p ${DESTDIR} + cp target/genwebsite-*.jar ${JAR} + cp genwebsite.sh.mk ${LAUNCHER}.sh + chmod +x ${LAUNCHER}.sh + sed -i "" "s|DESTDIR|${JAR}|" ${LAUNCHER}.sh + cp genwebsite.sh ${DESTDIR} + ln -s ${DESTDIR}/${LAUNCHER}.sh ${INSTALLDIR}/bin/${LAUNCHER} + +clean: + rm -f ${LAUNCHER}.sh + rm -f ${INSTALLDIR}/bin/${LAUNCHER} + rm -rf ${DESTDIR} -- cgit v1.2.3