From e0122f21ca11777cfe72684afb3a7793fed18f4a Mon Sep 17 00:00:00 2001 From: emma Date: Tue, 29 Aug 2023 13:23:29 -0600 Subject: [PATCH] Makefile: made install target create directories if they dont exist --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2268441..d16e06c 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ PREFIX=/usr/local CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto -Lbuild -lyac build: build_dir cat false tail true + rm build/yac.o clean: build_dir rm -rf build/ @@ -35,6 +36,6 @@ build_dir: mkdir -p build install: build - mkdir -p $(PREFIX) + mkdir -p $(PREFIX)/lib $(PREFIX)/bin cp -f build/*.so $(PREFIX)/lib/ cp -f build/* $(PREFIX)/bin/