summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTim Angus <tim@ngus.net>2001-09-18 00:29:48 +0000
committerTim Angus <tim@ngus.net>2001-09-18 00:29:48 +0000
commit628a77c817dcc8178cd27033b7de22dfb2f4e916 (patch)
treea67b0c143f58b596e0f98cc77c0a07694e06ccd6 /Makefile
parent65ab64c79371ec5c0e2f6ede909ed80ffeeefca5 (diff)
Makefile tweaks
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 16 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5eb629d9..5990f78a 100644
--- a/Makefile
+++ b/Makefile
@@ -173,10 +173,18 @@ debug: $(BD)/cgame$(ARCH).$(SHLIBEXT) $(BD)/qagame$(ARCH).$(SHLIBEXT) $(BD)/ui$(
qvm: $(BQ)/cgame.qvm $(BQ)/qagame.qvm $(BQ)/ui.qvm
makedirs:
- @if [ ! -d $(B) ];then mkdir $(B);fi
- @if [ ! -d $(B)/$(GDIRNAME) ];then mkdir $(B)/$(GDIRNAME);fi
- @if [ ! -d $(B)/$(CGDIRNAME) ];then mkdir $(B)/$(CGDIRNAME);fi
- @if [ ! -d $(B)/$(UIDIRNAME) ];then mkdir $(B)/$(UIDIRNAME);fi
+ @if [ ! -d $(BR) ];then mkdir $(BR);fi
+ @if [ ! -d $(BR)/$(GDIRNAME) ];then mkdir $(BR)/$(GDIRNAME);fi
+ @if [ ! -d $(BR)/$(CGDIRNAME) ];then mkdir $(BR)/$(CGDIRNAME);fi
+ @if [ ! -d $(BR)/$(UIDIRNAME) ];then mkdir $(BR)/$(UIDIRNAME);fi
+ @if [ ! -d $(BD) ];then mkdir $(BD);fi
+ @if [ ! -d $(BD)/$(GDIRNAME) ];then mkdir $(BD)/$(GDIRNAME);fi
+ @if [ ! -d $(BD)/$(CGDIRNAME) ];then mkdir $(BD)/$(CGDIRNAME);fi
+ @if [ ! -d $(BD)/$(UIDIRNAME) ];then mkdir $(BD)/$(UIDIRNAME);fi
+ @if [ ! -d $(BQ) ];then mkdir $(BQ);fi
+ @if [ ! -d $(BQ)/$(GDIRNAME) ];then mkdir $(BQ)/$(GDIRNAME);fi
+ @if [ ! -d $(BQ)/$(CGDIRNAME) ];then mkdir $(BQ)/$(CGDIRNAME);fi
+ @if [ ! -d $(BQ)/$(UIDIRNAME) ];then mkdir $(BQ)/$(UIDIRNAME);fi
@@ -296,14 +304,18 @@ clean-qvm:
# --installing rules--
install-release:release
+ mkdir -p $(Q3A_DIR)
mkdir -p $(Q3A_DIR)/$(MOD_DIR)
cp $(BR)/*.so $(Q3A_DIR)/$(MOD_DIR)
install-debug:debug
+ mkdir -p $(Q3A_DIR)
mkdir -p $(Q3A_DIR)/$(MOD_DIR)
cp $(BD)/*.so $(Q3A_DIR)/$(MOD_DIR)
install-qvm:qvm
+ mkdir -p $(Q3A_DIR)
+ mkdir -p $(Q3A_DIR)/$(MOD_DIR)
mkdir -p $(Q3A_DIR)/$(MOD_DIR)/vm
cp $(BQ)/*.qvm $(Q3A_DIR)/$(MOD_DIR)/vm