1
0
forked from bonsai/harakit

Makefile: made install target create directories if they dont exist

This commit is contained in:
Emma Tebibyte 2023-08-29 13:23:29 -06:00
parent 0e4faead44
commit e0122f21ca
Signed by untrusted user: emma
GPG Key ID: 6D661C738815E7DD

View File

@ -11,6 +11,7 @@ PREFIX=/usr/local
CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto -Lbuild -lyac CFLAGS=-O3 -s -Wl,-z,noseparate-code,-z,nosectionheader -flto -Lbuild -lyac
build: build_dir cat false tail true build: build_dir cat false tail true
rm build/yac.o
clean: build_dir clean: build_dir
rm -rf build/ rm -rf build/
@ -35,6 +36,6 @@ build_dir:
mkdir -p build mkdir -p build
install: build install: build
mkdir -p $(PREFIX) mkdir -p $(PREFIX)/lib $(PREFIX)/bin
cp -f build/*.so $(PREFIX)/lib/ cp -f build/*.so $(PREFIX)/lib/
cp -f build/* $(PREFIX)/bin/ cp -f build/* $(PREFIX)/bin/