From f0011ff9c6e7f2bbf97ae61bf265d276351c8b4f Mon Sep 17 00:00:00 2001 From: Aapo Talvensaari Date: Thu, 8 Aug 2024 21:28:45 +0300 Subject: [PATCH] chore(Makefile): split install tasks and remove extra char --- Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 3031ed8..dad514e 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: build copy-library luarocks-install lint unit coverage test docs clean install +.PHONY: build copy-library luarocks-install lint unit coverage test docs clean install-rock install-lib install LIBRARY := libada.so ifeq ($(shell uname), Darwin) @@ -10,7 +10,7 @@ build: @cmake --build build copy-library: build - @cp $ build/$(LIBRARY) . + @cp build/$(LIBRARY) . luarocks-install: @luarocks make @@ -32,9 +32,13 @@ test: copy-library luarocks-install coverage lint docs: @ldoc . -clean: - @rm -Rf build luacov.stats.out luacov.report.out $(LIBRARY) - -install: deps +install-rock: @luarocks make + +install-lib: build @cmake --install build + +install: install-rock install-lib + +clean: + @rm -Rf build luacov.stats.out luacov.report.out $(LIBRARY)