Added missing Makefile install target (#175)

This commit is contained in:
Bartek Kryza
2023-09-01 14:19:30 +02:00
parent 87982ab114
commit 9ebd5f24d5
2 changed files with 9 additions and 2 deletions

View File

@@ -39,6 +39,8 @@ PKG_VERSION ?= $(shell git describe --tags --always --abbrev=7 | tr - .)
GIT_COMMIT ?= $(shell git rev-parse HEAD)
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
DESTDIR ?=
.PHONY: clean
clean:
rm -rf debug release debug_tidy
@@ -88,6 +90,9 @@ test: debug
test_release: release
CTEST_OUTPUT_ON_FAILURE=1 make -C release test
install: release
make -C release install DESTDIR=${DESTDIR}
test_plantuml: test
plantuml -tsvg debug/tests/puml/*.puml

View File

@@ -77,9 +77,11 @@ release/src/clang-uml --help
# To build using a specific installed version of LLVM use:
LLVM_VERSION=14 make release
# Optionally
# Optionally, to install in default prefix
make install
# or
# or to install in custom prefix
make install DESTDIR=/opt/clang-uml
# or simply
export PATH=$PATH:$PWD/release
```