aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlessandro Iezzi <aiezzi@alessandroiezzi.it>2021-04-06 22:38:01 +0200
committerAlessandro Iezzi <aiezzi@alessandroiezzi.it>2021-04-06 22:38:01 +0200
commita38ca16a0fb463e45d71520a6924cdaca97653f3 (patch)
tree4494d7dc48e4dd448ee09882092092c473846f06
parent7b30962569fdff1b5bb65e48ef09140fc4ab31ac (diff)
downloadhyde-a38ca16a0fb463e45d71520a6924cdaca97653f3.tar.gz
hyde-a38ca16a0fb463e45d71520a6924cdaca97653f3.zip
Add dist target in Makefile
-rw-r--r--Makefile25
1 files 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: