aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-11-03 06:15:13 +0000
committerroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b>2006-11-03 06:15:13 +0000
commit7bbe87af999f7800f59a04e2ce24d9a7b366f60d (patch)
tree2af1c2bb1e4a99700b614cb93553bd6078ee9f69
parent24e56f38c6c73f7fd2aba731820b0b033605610a (diff)
downloadpandoc-7bbe87af999f7800f59a04e2ce24d9a7b366f60d.tar.gz
Fix a bug in variable substitution.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@73 788f1e2b-df1e-0410-8736-df70ead52e1b
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a59446ca1..a189c3490 100644
--- a/Makefile
+++ b/Makefile
@@ -163,10 +163,10 @@ uninstall-program: uninstall-exec uninstall-doc
# Install everything.
.PHONY: install-all uninstall-all
install-all: install-doc install-lib-doc
- destdir=$(DESTDIR); destdir=$${destdir:-/}; \
+ destdir=$(DESTDIR); \
# Older Cabal versions have no '--destdir' option.
if $(BUILDCMD) copy --help | grep -q '\-\-destdir'; then \
- opt='--destdir=$$destdir'; \
+ opt="--destdir=$${destdir-/}"; \
else \
opt="--copy-prefix=$${destdir}$(PREFIX)"; \
fi; \