diff options
author | 2021-04-06 22:38:01 +0200 | |
---|---|---|
committer | 2021-04-06 22:38:01 +0200 | |
commit | a38ca16a0fb463e45d71520a6924cdaca97653f3 (patch) | |
tree | 4494d7dc48e4dd448ee09882092092c473846f06 | |
parent | 7b30962569fdff1b5bb65e48ef09140fc4ab31ac (diff) | |
download | hyde-a38ca16a0fb463e45d71520a6924cdaca97653f3.tar.gz hyde-a38ca16a0fb463e45d71520a6924cdaca97653f3.zip |
Add dist target in Makefile
-rw-r--r-- | Makefile | 25 |
1 files changed, 18 insertions, 7 deletions
@@ -1,15 +1,26 @@ -INSTALLDIR=/usr/local -DESTDIR=${INSTALLDIR}/genwebsite -JAR=${DESTDIR}/genwebsite.jar -LAUNCHER=genwebsite +APPNAME=hyde +INSTALLDIR=~ +DESTDIR=${INSTALLDIR}/.${APPNAME} +JAR=${DESTDIR}/${APPNAME}.jar +LAUNCHER=${APPNAME} + +dist: + mvn package + +env: + @echo "APPNAME = "${APPNAME} + @echo "INSTALLDIR = "${INSTALLDIR} + @echo "DESTDIR = "${DESTDIR} + @echo "JAR = "${JAR} + @echo "LAUNCHER = "${LAUNCHER} install: mkdir -p ${DESTDIR} - cp target/genwebsite-*.jar ${JAR} - cp genwebsite.sh.mk ${LAUNCHER}.sh + cp target/${APPNAME}-*-jar-with-dependencies.jar ${JAR} + cp ${APPNAME}.sh.mk ${LAUNCHER}.sh chmod +x ${LAUNCHER}.sh sed -i "" "s|DESTDIR|${JAR}|" ${LAUNCHER}.sh - cp genwebsite.sh ${DESTDIR} + cp ${APPNAME}.sh ${DESTDIR} ln -s ${DESTDIR}/${LAUNCHER}.sh ${INSTALLDIR}/bin/${LAUNCHER} clean: |