Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make sure Makefile respects the DESTDIR parameter

  • Loading branch information...
commit 7d1e6c1253958834f882179ee9f208e4bd896dd8 1 parent e081462
@jonludlam jonludlam authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 Makefile
View
10 Makefile
@@ -58,10 +58,10 @@ tests-git:
%-install:
@if [ -e _obuild/$*/$*.asm ]; then \
echo "install _obuild/$*/$*.asm" && \
- cp _obuild/$*/$*.asm $(prefix)/bin/$*; \
+ cp _obuild/$*/$*.asm $(DESTDIR)$(prefix)/bin/$*; \
else \
echo "install _obuild/$*/$*.byte" && \
- cp _obuild/$*/$*.byte $(prefix)/bin/$*; \
+ cp _obuild/$*/$*.byte $(DESTDIR)$(prefix)/bin/$*; \
fi
META: META.in
@@ -69,9 +69,9 @@ META: META.in
.PHONY: uninstall install
install:
- mkdir -p $(prefix)/bin
+ mkdir -p $(DESTDIR)$(prefix)/bin
$(MAKE) $(TARGETS:%=%-install)
- mkdir -p $(mandir)/man1 && cp doc/man/* $(mandir)/man1
+ mkdir -p $(DESTDIR)$(mandir)/man1 && cp doc/man/* $(DESTDIR)$(mandir)/man1
uninstall:
rm -f $(prefix)/bin/opam*
@@ -115,4 +115,4 @@ archive:
configure: configure.ac m4/*.m4
aclocal -I m4
- autoconf
+ autoconf
Please sign in to comment.
Something went wrong with that request. Please try again.