]> Nishi Git Mirror - gwion.git/commitdiff
:wrench: Small Makefile improvments
authorfennecdjay <fennecdjay@gwion.tk>
Mon, 26 Oct 2020 11:54:44 +0000 (12:54 +0100)
committerfennecdjay <fennecdjay@gwion.tk>
Mon, 26 Oct 2020 11:54:44 +0000 (12:54 +0100)
Makefile

index 3a34790caa65ef867509c5ef3e8d2aa066da4bda..a5e21942a0612435fd7e30665cc839c83e566681 100644 (file)
--- 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