summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpasky <pasky@openttd.org>2005-03-11 22:47:33 +0000
committerpasky <pasky@openttd.org>2005-03-11 22:47:33 +0000
commite0035327011642033fc94d5304d0935b66149ab5 (patch)
tree6d1cdf19244eac6cbfd155154470c6bea44ac3df /Makefile
parent89d1c60c3f30fe52721bdddfb9abe161724491e8 (diff)
downloadopenttd-e0035327011642033fc94d5304d0935b66149ab5.tar.xz
(svn r1995) Makefile: Use the install tool instead of mkdir+cp for installing the system-wide stuff, more secure. Based on Peter Brett's patch 1152428.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 7146f8294..12d399a5d 100644
--- a/Makefile
+++ b/Makefile
@@ -916,16 +916,16 @@ ifeq ($(BINARY_DIR),)
endif
# We'll install in $DEST_DIR instead of root if it is set (we don't
# care about extra /'s
- mkdir -p $(DATA_DIR_INSTALL)/lang
- mkdir -p $(DATA_DIR_INSTALL)/data
- mkdir -p $(DATA_DIR_INSTALL)/gm
- mkdir -p $(BINARY_DIR_INSTALL)
- mkdir -p $(PERSONAL_DIR)/scenario
- cp $(TTD) $(BINARY_DIR_INSTALL)
- cp lang/*.lng $(DATA_DIR_INSTALL)/lang
- cp data/*.grf $(DATA_DIR_INSTALL)/data
- cp data/opntitle.dat $(DATA_DIR_INSTALL)/data
- cp media/openttd.64.png $(DATA_DIR_INSTALL)
+ install -d $(DATA_DIR_INSTALL)/lang \
+ $(DATA_DIR_INSTALL)/data \
+ $(DATA_DIR_INSTALL)/gm \
+ $(BINARY_DIR_INSTALL)
+ mkdir -p $(PERSONAL_DIR)/scenario
+ install $(TTD) $(BINARY_DIR_INSTALL)
+ install -m 644 lang/*.lng $(DATA_DIR_INSTALL)/lang
+ install -m 644 data/*.grf $(DATA_DIR_INSTALL)/data
+ install -m 644 data/opntitle.dat $(DATA_DIR_INSTALL)/data
+ install -m 644 media/openttd.64.png $(DATA_DIR_INSTALL)
cp scenario/* $(PERSONAL_DIR)/scenario/
else #MorphOS
install: