From 926ed32b8c6e44376e996f4474ddc8fd8d59a6e7 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 9 Oct 2019 23:42:30 +0200 Subject: [PATCH] :wrench: Improve Makefile --- Makefile | 9 ++++++++- ast | 2 +- util | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index c82cce91..018458ab 100644 --- a/Makefile +++ b/Makefile @@ -101,9 +101,16 @@ src/arg.o: @echo $@: config.mk >> $(DEPDIR)/$(@F:.o=.d) install: ${PRG} - install ${PRG} ${DESTDIR}/${PREFIX}/bin + $(info installing ${PACKAGE} in ${PREFIX}) + @install ${PRG} ${DESTDIR}/${PREFIX}/bin + @sed "s#PREFIX#${PREFIX}#g" scripts/gwion-config > gwion-config + @install gwion-config ${DESTDIR}/${PREFIX}/bin/gwion-config + @rm gwion-config + @mkdir -p ${DESTDIR}/${PREFIX}/include/gwion + @cp include/*.h ${DESTDIR}/${PREFIX}/include/gwion uninstall: + $(info uninstalling ${PACKAGE} from ${PREFIX}) rm ${DESTDIR}/${PREFIX}/bin/${PRG} test: diff --git a/ast b/ast index 61383918..c710a2a7 160000 --- a/ast +++ b/ast @@ -1 +1 @@ -Subproject commit 6138391802a26f9a8a60b437fc87079975256c35 +Subproject commit c710a2a74e3010da4b6c05857e7d8128e58ae54c diff --git a/util b/util index c4f53a32..0c019281 160000 --- a/util +++ b/util @@ -1 +1 @@ -Subproject commit c4f53a32cb4842332f5150a63dd9fc226e553da7 +Subproject commit 0c0192813f608422641d0e3fd32027b5278d1d53 -- 2.43.0