mirror of
https://github.com/johnkerl/miller.git
synced 2026-01-23 02:14:13 +00:00
Support DESTDIR when installing (#745)
In autoconf-style builds, DESTDIR is used to install to somewhere other than /; this is used in particular by packaging systems to "install" to a staging area before archiving the package contents. See https://www.gnu.org/prep/standards/html_node/DESTDIR.html for the specification. Signed-off-by: Stephen Kitt <steve@sk2.org>
This commit is contained in:
parent
39a6ddd782
commit
3423f61bda
2 changed files with 3 additions and 3 deletions
2
Makefile
2
Makefile
|
|
@ -17,7 +17,7 @@ check:
|
|||
go test -v
|
||||
|
||||
install: build
|
||||
cp mlr $(INSTALLDIR)
|
||||
cp mlr $(DESTDIR)/$(INSTALLDIR)
|
||||
make -C man install
|
||||
|
||||
fmt:
|
||||
|
|
|
|||
|
|
@ -22,8 +22,8 @@ build: .always
|
|||
cp mlr.1 ./man1
|
||||
|
||||
install:
|
||||
mkdir -p $(INSTALLDIR)
|
||||
cp mlr.1 $(INSTALLDIR)/mlr.1
|
||||
mkdir -p $(DESTDIR)/$(INSTALLDIR)
|
||||
cp mlr.1 $(DESTDIR)/$(INSTALLDIR)/mlr.1
|
||||
|
||||
|
||||
# ----------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue