aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-07-16 08:24:39 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2007-07-16 08:24:39 +0000
commit8d0fcce06a4e3892c1a122445af13be7271d10be (patch)
treea795d3e116355f242a1f103f7b8698e4deb12be2 /Makefile
parent0cba4f2c95fede51111a1388cab53eb2030bd407 (diff)
downloadpandoc-8d0fcce06a4e3892c1a122445af13be7271d10be.tar.gz
Backup 'var' before making deb and restore after.
Reason: In because in the process of making the debian package, 'var' gets overwritten with the local debian build directory as DESTDIR. This will break future 'make uninstall's, which will try to delete files from there instead of /usr/local (or wherever). git-svn-id: https://pandoc.googlecode.com/svn/trunk@735 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 93c2bc130..ea69e785a 100644
--- a/Makefile
+++ b/Makefile
@@ -348,6 +348,7 @@ deb: debian
echo "*** Please install dpkg-dev package. ***"; \
exit 1; \
}
+ -mv $(BUILDVARS) $(BUILDVARS).old # backup settings
if [ -x /usr/bin/debuild ]; then \
debuild -uc -us -i.svn -I.svn -i_darcs -I_darcs --lintian-opts -i; \
else \
@@ -355,6 +356,7 @@ deb: debian
echo "*** Using dpkg-buildpackage for package building. ***"; \
dpkg-buildpackage -rfakeroot -uc -us -i.svn -I.svn -i_darcs -I_darcs; \
fi
+ -mv $(BUILDVARS).old $(BUILDVARS) # restore
.PHONY: website
web_src:=web