Commit 0246d65b authored by Franco Fichtner's avatar Franco Fichtner

make: avoid a spurious error message when git isn't installed

parent 71f7dbc3
PKG!= which pkg || echo true
GIT!= which git || echo true
PAGER?= less
all:
......@@ -18,9 +19,11 @@ umount: force
remount: umount mount
.if ${GIT} != true
CORE_COMMIT!= ${.CURDIR}/scripts/version.sh
CORE_VERSION= ${CORE_COMMIT:C/-.*$//1}
CORE_HASH= ${CORE_COMMIT:C/^.*-//1}
.endif
.if "${FLAVOUR}" == LibreSSL
CORE_REPOSITORY?= libressl
......@@ -197,6 +200,6 @@ health: force
[ "`${.CURDIR}/src/etc/rc.php_test_run`" == "FCGI-PASSED PASSED" ]
clean:
git reset --hard HEAD && git clean -xdqf .
${GIT} reset --hard HEAD && ${GIT} clean -xdqf .
.PHONY: force
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment