nstool/programs/makefile
2018-04-25 12:59:42 +08:00

14 lines
No EOL
284 B
Makefile

PROGS = nstool
BIN_DIR = "../bin"
main: build
rebuild: clean build
build:
mkdir -p $(BIN_DIR)
@$(foreach prog,$(PROGS), cd $(prog) && $(MAKE) && cd .. && cp -r $(prog)/bin/* $(BIN_DIR);)
clean:
@$(foreach prog,$(PROGS), cd $(prog) && $(MAKE) clean && cd ..;)
rm -rf $(BIN_DIR)