From: Thomas Veerman Date: Thu, 21 Apr 2011 13:20:55 +0000 (+0000) Subject: Generate .gitignore file for tools directory X-Git-Tag: v3.2.0~569 X-Git-Url: http://zhaoyanbai.com/repos/doc/mandoc_char.7.html?a=commitdiff_plain;h=20a04a068de989d71d9943b9b6c66eb2000f9613;p=minix.git Generate .gitignore file for tools directory --- diff --git a/tools/Makefile b/tools/Makefile index 9e58e5b9a..bdc8ecbe2 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -2,6 +2,7 @@ u=/usr MDEC= /usr/mdec +GEN_FILES= *.bak image kernel *.iso *.iso.gz cdfdimage rootimage src # Specify the programs that are part of the system image. PROGRAMS= kernel \ @@ -65,9 +66,12 @@ image: includes services includes: $(MAKE) -C .. includes -depend: includes +depend: includes .gitignore $(MAKE) -C ../ depend +.gitignore: Makefile + echo $(GEN_FILES) | tr ' ' '\n' >.gitignore + services: includes kernel servers .WAIT drivers kernel: includes @@ -101,7 +105,7 @@ clean: $(MAKE) -C ../kernel $@ $(MAKE) -C ../servers $@ $(MAKE) -C ../drivers $@ - rm -rf *.bak image kernel *.iso *.iso.gz cdfdimage rootimage src + rm -rf $(GEN_FILES) cleandepend:: $(MAKE) -C ../kernel $@