mkdir -p obj/{common,login,char,map,ladmin,tool} after each make clean, so what do you think about this (created with help of Pjotr Orial):
Code: Select all
From 1341e53a28a9859fbce2883ea26b56e46b5aeadc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jessica=20T=C3=B6lke?= <jtoelke@mail.upb.de>
Date: Tue, 18 Sep 2012 22:44:27 +0200
Subject: [PATCH] Create needed directories via makefile.
---
GNUmakefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/GNUmakefile b/GNUmakefile
index a8914f8..13bef01 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -1,7 +1,8 @@
#! /usr/bin/make -f
SHELL=/bin/bash
BUILD_DIR = obj
-default: login-server char-server map-server ladmin eathena-monitor
+default: dir
+ $(MAKE) login-server char-server map-server ladmin eathena-monitor
.DELETE_ON_ERROR:
include make.defs
@@ -42,6 +43,8 @@ clean:
rm -rf ${PROGS} ${BUILD_DIR}/
common: ${BUILD_DIR}/common/core.o ${BUILD_DIR}/common/db.o ${BUILD_DIR}/common/grfio.o ${BUILD_DIR}/common/lock.o ${BUILD_DIR}/common/md5calc.o ${BUILD_DIR}/common/mt_rand.o ${BUILD_DIR}/common/nullpo.o ${BUILD_DIR}/common/socket.o ${BUILD_DIR}/common/timer.o ${BUILD_DIR}/common/utils.o
+dir:
+ mkdir -p obj/{common,login,char,map,ladmin,tool}
# Top level programs
login-server: ${BUILD_DIR}/login/login
cp -f $< $@
--
1.7.9.5