From 97e52b65bbb91a94c9a93a8e03d395b121e7731f Mon Sep 17 00:00:00 2001 From: julianb0 Date: Sun, 23 Jun 2019 13:15:22 +0200 Subject: [PATCH] wc --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 54f192b..0a113f7 100644 --- a/Makefile +++ b/Makefile @@ -18,13 +18,15 @@ $(KODIR)/a.out: $(DOSK) kas .PHONY: clean clean: - @cd vm && make clean --no-print-directory - @rm -f $(KODIR)/a.out $(KODIR)/a.out.sym $(KODIR)/k.exe as/instrs.lst + @cd vm && make clean --no-print-directory -s verbose=no + @rm -f $(KODIR)/a.out $(KODIR)/a.sym $(KODIR)/k.exe as/instrs.lst test: $(KODIR)/a.out @vm/k.exe $(KODIR)/a.out $(KODIR)/a.sym @rm -f $(KODIR)/a.out $(KODIR)/a.sym wc: clean - @cat $(shell find -name *.[kch]) $(shell find -name *.py) | wc -l + @cat $(shell find -type f -name '*' ! -path './.git/*' | egrep '(ka|vm)/*') | wc -l +find: + @find -type f -name '*' ! -path './.git/*' | egrep '(ka|vm)/*'