diff options
| author | Claudius Holeksa <mail@keldu.de> | 2023-05-09 17:58:30 +0200 |
|---|---|---|
| committer | Claudius Holeksa <mail@keldu.de> | 2023-05-09 17:58:30 +0200 |
| commit | 2e8ee05aee8c03aaf1f991b8403a6980eeb1f4fc (patch) | |
| tree | 14aabbe752f00f218eb3a01df2e1f155fde3e409 /Makefile | |
| parent | a178b64a681dc0a381835ab567853c132753902f (diff) | |
| download | mini-test-2e8ee05aee8c03aaf1f991b8403a6980eeb1f4fc.tar.gz | |
Fixed build and install issues. Confirmed install and build on nix
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1,17 +1,19 @@ .PHONY: all clean +PREFIX ?= /usr/local + all: build/libkeltest.a build/libkeltest.a: mkdir -p ./build c++ -std=c++17 -DKELTEST_COMPILE_TEST_BINARY src/keltest/test.cpp -o build/test.o - ar build/libkeltest.a build/test.o + ar q build/libkeltest.a build/test.o clean: rm -rf ./build install: build/libkeltest.a - mkdir -p ${prefix}/lib - mkdir -p ${prefix}/include/keltest - cp build/libkeltest.a ${prefix}/lib/libkeltest.a - cp src/keltest/test.h ${prefix}/include/keltest/test.h + mkdir -p ${PREFIX}/lib + mkdir -p ${PREFIX}/include/keltest + cp build/libkeltest.a ${PREFIX}/lib/libkeltest.a + cp src/keltest/test.h ${PREFIX}/include/keltest/test.h |
