Build: Make out directories on building.

This commit is contained in:
pexcn 2018-11-30 12:31:35 +08:00 committed by Heiher
parent 77a732c21e
commit e1bf760ff8
4 changed files with 4 additions and 3 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
bin
build

View File

@ -52,10 +52,11 @@ tp-clean : $(THIRDPARTS)
@$(foreach dir,$^,make --no-print-directory -C $(dir) clean;)
clean : tp-clean
$(ECHO_PREFIX) $(RM) $(BINDIR)/* $(BUILDDIR)/*
$(ECHO_PREFIX) $(RM) -rf $(BINDIR) $(BUILDDIR)
@echo -e $(CLEANMSG)
$(TARGET) : $(LDOBJS)
$(ECHO_PREFIX) mkdir -p $(dir $@)
$(ECHO_PREFIX) $(CC) -o $@ $^ $(LDFLAGS)
@echo -e $(LINKMSG)
$(ECHO_PREFIX) $(STRIP) $@

1
bin/.gitignore vendored
View File

@ -1 +0,0 @@
*

1
build/.gitignore vendored
View File

@ -1 +0,0 @@
*