diff options
Diffstat (limited to 'tangle/makefile')
-rw-r--r-- | tangle/makefile | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tangle/makefile b/tangle/makefile index ab7e7adf..2b22e809 100644 --- a/tangle/makefile +++ b/tangle/makefile @@ -3,21 +3,21 @@ tangle: makefile type_list function_list file_list test_file_list test_list type_list: boot.cc [0-9]*.cc @# assumes struct decl has space before '{' - @grep -h "^struct .* {" [0-9]*.cc |perl -pwe 's/(struct *[^ ]*).*/$$1;/' > type_list + @grep -h "^struct .* {" [0-9]*.cc |sed 's/\(struct *[^ ]*\).*/\1;/' > type_list @grep -h typedef [0-9]*.cc >> type_list function_list: boot.cc [0-9]*.cc @# assumes function decl has space before '{' - @grep -h "^[^ #].*) {" [0-9]*.cc |perl -pwe 's/ \{.*/;/' > function_list + @grep -h "^[^ #].*) {" [0-9]*.cc |sed 's/ {.*/;/' > function_list file_list: boot.cc [0-9]*.cc - @ls [0-9]*.cc |grep -v "\.test\.cc$$" |perl -pwe 's/.*/#include "$$&"/' > file_list + @ls [0-9]*.cc |grep -v "\.test\.cc$$" |sed 's/.*/#include "&"/' > file_list test_file_list: [0-9]*.test.cc - @ls [0-9]*.test.cc |perl -pwe 's/.*/#include "$$&"/' > test_file_list + @ls [0-9]*.test.cc |sed 's/.*/#include "&"/' > test_file_list test_list: [0-9]*.cc - @grep -h "^[[:space:]]*void test_" [0-9]*.cc |perl -pwe 's/^\s*void (.*)\(\) \{$$/$$1,/' > test_list + @grep -h "^[[:space:]]*void test_" [0-9]*.cc |sed 's/^\s*void \(.*\)() {$$/\1,/' > test_list .PHONY: clean |