the-maze/Makefile
File Type: text/x-makefile
freebasic = fbc -w all -lang qb
out := out
all: game edit data
$(out):
    mkdir $(out)
game: $(out)/game
$(out)/game: | $(out)
    $(freebasic) game.bas && mv game $(out)/
edit: $(out)/edit
$(out)/edit: | $(out)
    $(freebasic) edit.bas && mv edit $(out)/
data: | $(out)
    cp game.ini edit.ini world1.dat $(out)/
clean:
    rm -rf $(out)
run: all
    cd $(out) && ./game
.PHONY: game edit data all clean run