diff options
author | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-16 08:24:39 +0000 |
---|---|---|
committer | fiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> | 2007-07-16 08:24:39 +0000 |
commit | 8d0fcce06a4e3892c1a122445af13be7271d10be (patch) | |
tree | a795d3e116355f242a1f103f7b8698e4deb12be2 /Makefile | |
parent | 0cba4f2c95fede51111a1388cab53eb2030bd407 (diff) | |
download | pandoc-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-- | Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |