1
From: Matthijs Kooijman <matthijs@stdin.nl>
2
Subject: Create directories on make install
4
The original Makefile assumes directories are available, which is not
5
the case when building a Debian package.
7
Index: openttd-opensfx/Makefile
8
===================================================================
9
--- openttd-opensfx.orig/Makefile 2010-02-23 19:04:36.000000000 +0100
10
+++ openttd-opensfx/Makefile 2010-02-23 19:57:31.000000000 +0100
12
$(_V)$(BZIP) $(BZIP_FLAGS) $^
14
# Installation process
15
-install: $(TAR_FILENAME) $(INSTALLDIR)
16
+install: $(TAR_FILENAME)
17
$(_E) "[INSTALL] to $(INSTALLDIR)"
18
+ $(_V)-mkdir -p $(INSTALLDIR)
19
$(_V)-cp $(TAR_FILENAME) $(INSTALLDIR)
23
$(_V) $(TAR) --gzip -cf $(DIR_NAME_SRC).tar.gz $(DIR_NAME_SRC)
24
$(_V) rm -rf $(DIR_NAME_SRC)
28
- $(_E) "$(error Installation dir does not exist. Check your makefile.local)"
31
$(_E) "Target is obsolete. Use 'install' instead."