diff options
author | 2021-02-16 21:19:54 +0100 | |
---|---|---|
committer | 2021-02-16 21:19:54 +0100 | |
commit | 5c32709bd7f77a1366dd0ab2813616f40c504517 (patch) | |
tree | 0fcf5e5cb957fe155f4db0321c3211a36f93108f | |
parent | 52582b4fec951cbf7ab65864955645b9ab9822e3 (diff) | |
download | hyde-5c32709bd7f77a1366dd0ab2813616f40c504517.tar.gz hyde-5c32709bd7f77a1366dd0ab2813616f40c504517.zip |
Add Makefile and template for the launcher
-rw-r--r-- | Makefile | 18 | ||||
-rwxr-xr-x | genwebsite.sh.mk | 3 |
2 files changed, 21 insertions, 0 deletions
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} diff --git a/genwebsite.sh.mk b/genwebsite.sh.mk new file mode 100755 index 0000000..4caeb99 --- /dev/null +++ b/genwebsite.sh.mk @@ -0,0 +1,3 @@ +#!/bin/sh + +java -jar DESTDIR $@ |