fixed makefile to create bin dir if needed

This commit is contained in:
Tom Everett
2016-03-05 13:44:48 -07:00
parent d65bc30f93
commit 0c007f6c77
2 changed files with 11 additions and 7 deletions
+10 -7
View File
@@ -1,15 +1,18 @@
# Top level makefile to build the utilities etc,
AS= tools/as7
BIN=bin
all: utilities
utilities:
$(AS) -o bin/cat src/cmd/cat.s
$(AS) -o bin/cp src/cmd/cp.s
$(AS) -o bin/chmod src/cmd/chmod.s
$(AS) -o bin/chown src/cmd/chown.s
$(AS) -o bin/chrm src/cmd/chrm.s
$(AS) -o bin/ls src/other/wktls.s
mkdir $(BIN)
$(AS) -o $(BIN)/cat src/cmd/cat.s
$(AS) -o $(BIN)/cp src/cmd/cp.s
$(AS) -o $(BIN)/chmod src/cmd/chmod.s
$(AS) -o $(BIN)/chown src/cmd/chown.s
$(AS) -o $(BIN)/chrm src/cmd/chrm.s
$(AS) -o $(BIN)/ls src/other/wktls.s
clean:
rm -f bin/*
rm -f $(BIN)/*
rmdir $(BIN)