diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2015-04-25 14:14:12 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2015-04-25 14:15:00 +0200 |
commit | 58c32c97cf7799a60a48887b464294d395f9f1c1 (patch) | |
tree | ecfd29600b5300fdf4cc45f454d635719f112d22 | |
parent | 6ddcf53550caa32be40fbace515c4ee07f69ad9e (diff) |
Added cleansrc to makefile (nw)
-rw-r--r-- | makefile | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -973,4 +973,32 @@ $(GENDIR)/%.lh: $(SRC)/%.lay $(SRC)/build/file2str.py include $(SRC)/regtests/regtests.mak +.PHONY: tests + tests: $(REGTESTS) + +#------------------------------------------------- +# Source cleanup +#------------------------------------------------- + +.PHONY: cleansrc + +cleansrc: + @echo Cleaning up tabs/spaces/end of lines.... +ifeq ($(OS),windows) + $(shell for /r src %%i in (*.c) do srcclean %%i >&2 ) + $(shell for /r src %%i in (*.h) do srcclean %%i >&2 ) + $(shell for /r src %%i in (*.mak) do srcclean %%i >&2 ) + $(shell for /r src %%i in (*.lst) do srcclean %%i >&2 ) + $(shell for /r src %%i in (*.lay) do srcclean %%i >&2 ) + $(shell for /r src %%i in (*.inc) do srcclean %%i >&2 ) + $(shell for /r hash %%i in (*.xml) do srcclean %%i >&2 ) +else + $(shell find src/ -name *.c -exec ./srcclean {} >&2 ;) + $(shell find src/ -name *.h -exec ./srcclean {} >&2 ;) + $(shell find src/ -name *.mak -exec ./srcclean {} >&2 ;) + $(shell find src/ -name *.lst -exec ./srcclean {} >&2 ;) + $(shell find src/ -name *.lay -exec ./srcclean {} >&2 ;) + $(shell find src/ -name *.inc -exec ./srcclean {} >&2 ;) + $(shell find hash/ -name *.xml -exec ./srcclean {} >&2 ;) +endif |