From a38ca16a0fb463e45d71520a6924cdaca97653f3 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 6 Apr 2021 22:38:01 +0200 Subject: Add dist target in Makefile --- Makefile | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index 2e601a2..c44ef1a 100644 --- a/Makefile +++ b/Makefile @@ -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: -- cgit v1.2.3 From 299a4c59c404382c80b87d271afb496bc483b7e0 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Tue, 6 Apr 2021 22:38:36 +0200 Subject: Change project's name in pom.xml --- pom.xml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index b758b38..d4b8a6c 100644 --- a/pom.xml +++ b/pom.xml @@ -1,16 +1,17 @@ - + 4.0.0 it.alessandroiezzi - genwebsite + hyde 0.0.1 - genwebsite + hyde - http://www.example.com + https://github.com/aindros/hyde UTF-8 -- cgit v1.2.3