Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #318 from jonludlam/add_destdir

Make sure Makefile respects the DESTDIR parameter
  • Loading branch information...
commit 7c35da5d6ba999b42f97186b482a01c841e545c4 2 parents 24b7a23 + 7d1e6c1
Thomas Gazagnaire samoht authored
Showing with 5 additions and 5 deletions.
  1. +5 −5 Makefile
10 Makefile
View
@@ -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.