Changes to Makefile required for building the Debian package

--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,8 @@
 #   make clean all archives
 # to get fresh and ready to deploy .tbz2 and .zip archives
 
-MAKEOBJ ?= ./makeobj
+SHELL   = /bin/bash
+MAKEOBJ ?= /usr/games/makeobj
 
 DESTDIR  ?= simutrans
 PAKDIR   ?= $(DESTDIR)/pak
@@ -47,7 +48,7 @@
 
 .PHONY: $(DIRS) $(ADDON_DIRS64) copy tar zip
 
-all: copy $(DIRS) zip
+all: $(DIRS)
 
 archives: tar zip
 
@@ -64,12 +65,12 @@
 
 copy:
 	@echo "===> COPY"
-	@mkdir -p $(PAKDIR)/sound $(PAKDIR)/text $(PAKDIR)/config $(PAKDIR)/scenario
-	@cp -p compat/compat.tab $(PAKDIR)
-	@cp -p sound/* $(PAKDIR)/sound
-	@cp -p config/* $(PAKDIR)/config
-	@cp -p scenario/* $(PAKDIR)/scenario
-	@cp -p pak.text/* $(PAKDIR)/text
+	install -m 755 -d $(PAKDIR)/sound $(PAKDIR)/text $(PAKDIR)/config $(PAKDIR)/scenario
+	install -m 644 compat/compat.tab $(PAKDIR)
+	install -m 644 sound/* $(PAKDIR)/sound
+	install -m 644 config/* $(PAKDIR)/config
+	install -m 644 scenario/* $(PAKDIR)/scenario
+	install -m 644 pak.text/* $(PAKDIR)/text
 
 $(DIRS64):
 	@echo "===> PAK64 $@"
@@ -85,7 +86,8 @@
 	@echo "===> OUTSIDE with REVISION and grounds"
 	@mkdir -p $(PAKDIR)
 	@echo -e -n "Obj=ground\nName=Outside\ncopyright=pak64 111.2 r" >$@/outside.dat
-	@svnversion >>$@/outside.dat
+	#@svnversion >>$@/outside.dat
+	@echo $(SVNREV) >>$@/outside.dat
 	@echo -e "Image[0][0]=outside.0.0\n-" >>$@/outside.dat
 	@$(MAKEOBJ) PAK64 $(PAKDIR)/ $@/ > /dev/null
 	@rm $@/outside.dat
