commit 1a0f00dabf760c1816390ee17d201a75eda28250 parent 2a0eb4f90aff3d4c0365c4240a97969b03bfdc50 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Wed, 18 Oct 2023 11:35:51 +0200 Show other build system commands Displays the commands executed by the clean_test target, as well as the sed directives used to generate pc files. There's no particular advantage in hiding them, and it's sane to see what is going on. Diffstat:
| M | Makefile | | | 27 | +++++++++++++-------------- |
1 file changed, 13 insertions(+), 14 deletions(-)
diff --git a/Makefile b/Makefile @@ -66,19 +66,18 @@ libaw.o: $(OBJ) # Installation ################################################################################ pkg: - @echo "Setup aw.pc" - @sed -e 's#@PREFIX@#$(PREFIX)#g' \ - -e 's#@VERSION@#$(VERSION)#g' \ - -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \ - aw.pc.in > aw.pc + sed -e 's#@PREFIX@#$(PREFIX)#g' \ + -e 's#@VERSION@#$(VERSION)#g' \ + -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \ + aw.pc.in > aw.pc aw-local.pc: aw.pc.in - @sed -e '1d'\ - -e 's#^includedir=.*#includedir=./src/#'\ - -e 's#^libdir=.*#libdir=./#'\ - -e 's#@VERSION@#$(VERSION)#g'\ - -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \ - aw.pc.in > $@ + sed -e '1d'\ + -e 's#^includedir=.*#includedir=./src/#'\ + -e 's#^libdir=.*#libdir=./#'\ + -e 's#@VERSION@#$(VERSION)#g'\ + -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \ + aw.pc.in > $@ install: build_library pkg @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/lib" $(LIBNAME) @@ -133,9 +132,9 @@ test: build_tests @$(SHELL) make.sh config_test $(TEST_SRC) > $@ clean_test: - @rm -f test_cbox.obj test_obj_cube.obj test_obj_plane.obj test_obj_squares.obj - @rm -f mtl0.mtl test_mtl_common.mtl test_mtl_multi.mtl - @$(SHELL) make.sh clean_test $(TEST_SRC) + rm -f test_cbox.obj test_obj_cube.obj test_obj_plane.obj test_obj_squares.obj + rm -f mtl0.mtl test_mtl_common.mtl test_mtl_multi.mtl + $(SHELL) make.sh clean_test $(TEST_SRC) $(TEST_DEP) $(TEST_OBJ): config.mk aw-local.pc