Skip to content

Commit

Permalink
Merge pull request #3752 from paulmenzel/fix-pzstd-makefile
Browse files Browse the repository at this point in the history
Fix pzstd Makefile to allow setting `DESTDIR` and `BINDIR` separately
  • Loading branch information
Cyan4973 authored Oct 8, 2023
2 parents 2b31cb0 + d55ebb5 commit c692b8d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions contrib/pzstd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Standard variables for installation
DESTDIR ?=
PREFIX ?= /usr/local
BINDIR := $(DESTDIR)$(PREFIX)/bin
BINDIR := $(PREFIX)/bin

ZSTDDIR = ../../lib
PROGDIR = ../../programs
Expand Down Expand Up @@ -112,12 +112,12 @@ check:
.PHONY: install
install: PZSTD_CPPFLAGS += -DNDEBUG
install: pzstd$(EXT)
install -d -m 755 $(BINDIR)/
install -m 755 pzstd$(EXT) $(BINDIR)/pzstd$(EXT)
install -d -m 755 $(DESTDIR)$(BINDIR)/
install -m 755 pzstd$(EXT) $(DESTDIR)$(BINDIR)/pzstd$(EXT)

.PHONY: uninstall
uninstall:
$(RM) $(BINDIR)/pzstd$(EXT)
$(RM) $(DESTDIR)$(BINDIR)/pzstd$(EXT)

# Targets for many different builds
.PHONY: all
Expand Down

0 comments on commit c692b8d

Please sign in to comment.