From: fennecdjay Date: Mon, 26 Oct 2020 11:54:44 +0000 (+0100) Subject: :wrench: Small Makefile improvments X-Git-Tag: nightly~1220 X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=45e0d1d21581bf49b4312a4acabd1f76512192ad;p=gwion.git :wrench: Small Makefile improvments --- diff --git a/Makefile b/Makefile index 3a34790c..a5e21942 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,6 @@ GWION_TEST_DIR ?= /tmp GWION_PACKAGE=gwion CFLAGS += -DGWION_PACKAGE='"${GWION_PACKAGE}"' -GIT_BRANCH=$(shell git branch | grep "*" | cut -d" " -f2) - src := $(wildcard src/*.c) src += $(wildcard src/*/*.c) @@ -93,7 +91,7 @@ clean: clean_core $(info cleaning ...) @rm -f src/*.o src/*/*.o gwion lib${PRG}.a src/*.gcno src/*.gcda -install: ${PRG} +install: ${PRG} translation-install $(info installing ${GWION_PACKAGE} in ${PREFIX}) @mkdir -p ${DESTDIR}/${PREFIX}/{bin,lib,include,share} @install ${PRG} ${DESTDIR}/${PREFIX}/bin @@ -104,12 +102,14 @@ install: ${PRG} @rm gwion-config @mkdir -p ${DESTDIR}/${PREFIX}/include/gwion @cp -r include/* ${DESTDIR}/${PREFIX}/include/gwion - @make -s -C util install - @make -s -C ast install + @${MAKE} -s -C util install + @${MAKE} -s -C ast install -uninstall: +uninstall: translation-uninstall $(info uninstalling ${GWION_PACKAGE} from ${PREFIX}) @rm ${DESTDIR}/${PREFIX}/bin/${PRG} + @rm ${DESTDIR}/${PREFIX}/bin/gwion-config + @rm ${DESTDIR}/${PREFIX}/bin/gwion-pkg @rm ${DESTDIR}/${PREFIX}/lib/lib${PRG}.a @rm ${DESTDIR}/${PREFIX}/include/gwion/*.h @rmdir --ignore-fail-on-non-empty ${DESTDIR}/${PREFIX}/include/gwion