summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2021-01-03 20:59:22 +0000
committerJuan J. Martinez <jjm@usebox.net>2021-01-03 21:00:45 +0000
commita64b5690098285dffd3c50e7761ea7d3b0755cac (patch)
treeba5d5156dc54735d8bb60336e4a3a9b6ef701932 /Makefile
parent02da785ec1457f1907f1d7af154460fcd11aa9cb (diff)
downloadubox-msx-lib-a64b5690098285dffd3c50e7761ea7d3b0755cac.tar.gz
ubox-msx-lib-a64b5690098285dffd3c50e7761ea7d3b0755cac.zip
More elegant dir management
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index b8171ea..cb44302 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,10 @@
all: libs
-libs: ubox spman mplayer
+libs: lib ubox spman mplayer
-game: libs bin/game.rom
+game: bin libs bin/game.rom
bin/game.rom:
- mkdir -p ./bin
make -C tools
make -C game
@@ -13,15 +12,12 @@ docs:
make -C docs
ubox:
- mkdir -p lib
make -C src/ubox
spman:
- mkdir -p lib
make -C src/spman
mplayer:
- mkdir -p lib
make -C src/mplayer
.PHONY: clean cleanall docs ubox libs bin/game.rom
@@ -32,7 +28,13 @@ clean:
make -C src/mplayer clean
make -C game clean
+lib:
+ mkdir -p ./lib
+
+bin:
+ mkdir -p ./bin
+
cleanall: clean
- rm -rf ./bin
+ rm -rf ./bin ./lib
make -C docs clean