Anonymous avatar Anonymous committed b000e9c Draft

Fix build script (permissions, create non-existent dirs.)

Comments (0)

Files changed (3)

+syntax: glob
+
+bin/*
+obj/*
+*.lst
+bekernel.inc
+

Makefile

-# Top-level Makefile for all of BefOS
-# $Id: Makefile 62 2006-02-05 04:39:58Z catseye $
-
-# This is so wrong.  We need to amalgamate this
-# into a single Makefile someday.
-
-# the 'cd ..' is required to get out of obj/
-SRCDIR=../src
-DISKDIR=../disk
-
-all:
-	cd $(SRCDIR)/tools && make all
-	cd $(SRCDIR)/kernel && make all
-	cd $(SRCDIR)/inc && make all
-	cd $(SRCDIR)/apps && make all
-	cd $(SRCDIR)/page && make all
-	cd $(SRCDIR)/boot && make all
-	cd $(DISKDIR) && make all
-
-clean:
-	cd $(SRCDIR)/tools && make clean
-	cd $(SRCDIR)/kernel && make clean
-	cd $(SRCDIR)/inc && make clean
-	cd $(SRCDIR)/apps && make clean
-	cd $(SRCDIR)/page && make clean
-	cd $(SRCDIR)/boot && make clean
-	cd $(DISKDIR) && make clean
-
-test: all
-	cd $(DISKDIR) && make test
 
 TARGET=$1
 
+mkdir -p bin obj
+
 cd src/tools && make ${TARGET} && cd ../..
 cd src/kernel && make ${TARGET} && cd ../..
 cd src/inc && make ${TARGET} && cd ../..
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.