Added missing Makefile install target (#175)
This commit is contained in:
5
Makefile
5
Makefile
@@ -39,6 +39,8 @@ PKG_VERSION ?= $(shell git describe --tags --always --abbrev=7 | tr - .)
|
|||||||
GIT_COMMIT ?= $(shell git rev-parse HEAD)
|
GIT_COMMIT ?= $(shell git rev-parse HEAD)
|
||||||
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
GIT_BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
||||||
|
|
||||||
|
DESTDIR ?=
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -rf debug release debug_tidy
|
rm -rf debug release debug_tidy
|
||||||
@@ -88,6 +90,9 @@ test: debug
|
|||||||
test_release: release
|
test_release: release
|
||||||
CTEST_OUTPUT_ON_FAILURE=1 make -C release test
|
CTEST_OUTPUT_ON_FAILURE=1 make -C release test
|
||||||
|
|
||||||
|
install: release
|
||||||
|
make -C release install DESTDIR=${DESTDIR}
|
||||||
|
|
||||||
test_plantuml: test
|
test_plantuml: test
|
||||||
plantuml -tsvg debug/tests/puml/*.puml
|
plantuml -tsvg debug/tests/puml/*.puml
|
||||||
|
|
||||||
|
|||||||
@@ -77,9 +77,11 @@ release/src/clang-uml --help
|
|||||||
# To build using a specific installed version of LLVM use:
|
# To build using a specific installed version of LLVM use:
|
||||||
LLVM_VERSION=14 make release
|
LLVM_VERSION=14 make release
|
||||||
|
|
||||||
# Optionally
|
# Optionally, to install in default prefix
|
||||||
make install
|
make install
|
||||||
# or
|
# or to install in custom prefix
|
||||||
|
make install DESTDIR=/opt/clang-uml
|
||||||
|
# or simply
|
||||||
export PATH=$PATH:$PWD/release
|
export PATH=$PATH:$PWD/release
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user