mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(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.
This commit is contained in:
parent
0154408b37
commit
935da8cabb
20
Makefile
20
Makefile
@ -916,16 +916,16 @@ ifeq ($(BINARY_DIR),)
|
|||||||
endif
|
endif
|
||||||
# We'll install in $DEST_DIR instead of root if it is set (we don't
|
# We'll install in $DEST_DIR instead of root if it is set (we don't
|
||||||
# care about extra /'s
|
# care about extra /'s
|
||||||
mkdir -p $(DATA_DIR_INSTALL)/lang
|
install -d $(DATA_DIR_INSTALL)/lang \
|
||||||
mkdir -p $(DATA_DIR_INSTALL)/data
|
$(DATA_DIR_INSTALL)/data \
|
||||||
mkdir -p $(DATA_DIR_INSTALL)/gm
|
$(DATA_DIR_INSTALL)/gm \
|
||||||
mkdir -p $(BINARY_DIR_INSTALL)
|
$(BINARY_DIR_INSTALL)
|
||||||
mkdir -p $(PERSONAL_DIR)/scenario
|
mkdir -p $(PERSONAL_DIR)/scenario
|
||||||
cp $(TTD) $(BINARY_DIR_INSTALL)
|
install $(TTD) $(BINARY_DIR_INSTALL)
|
||||||
cp lang/*.lng $(DATA_DIR_INSTALL)/lang
|
install -m 644 lang/*.lng $(DATA_DIR_INSTALL)/lang
|
||||||
cp data/*.grf $(DATA_DIR_INSTALL)/data
|
install -m 644 data/*.grf $(DATA_DIR_INSTALL)/data
|
||||||
cp data/opntitle.dat $(DATA_DIR_INSTALL)/data
|
install -m 644 data/opntitle.dat $(DATA_DIR_INSTALL)/data
|
||||||
cp media/openttd.64.png $(DATA_DIR_INSTALL)
|
install -m 644 media/openttd.64.png $(DATA_DIR_INSTALL)
|
||||||
cp scenario/* $(PERSONAL_DIR)/scenario/
|
cp scenario/* $(PERSONAL_DIR)/scenario/
|
||||||
else #MorphOS
|
else #MorphOS
|
||||||
install:
|
install:
|
||||||
|
Loading…
Reference in New Issue
Block a user