about summary refs log tree commit diff stats
path: root/archive/2.vm/086scenario_console_test.mu
Commit message (Expand)AuthorAgeFilesLines
* 5485 - promote SubX to top-levelKartik Agaram2019-07-271-0/+25
Agaram <vc@akkartik.com> 2015-02-18 14:48:19 -0800 committer Kartik K. Agaram <vc@akkartik.com> 2015-02-18 14:48:19 -0800 782 - promote literate version to canonical C++ version' href='/akkartik/mu/commit/cpp/makefile?h=main&id=01b2852b653a81c4d5e197a0c52659c7e0dcaf5f'>01b2852b ^
88663269 ^
01b2852b ^

88663269 ^
01b2852b ^
201b2e6c ^
01b2852b ^
88663269 ^
01b2852b ^

f4b6b2c2 ^
88663269 ^
01b2852b ^

f4b6b2c2 ^
88663269 ^
201b2e6c ^
88663269 ^
01b2852b ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29


                                                             
 




                                                                             
 

                         
 
                                                          
                                 
                                                  
 

                                                                           
                                                                                                                
 

                                                                                                       
                                                                                                     
 
            
      

                               
mu: makefile tangle/tangle mu.cc
	g++ -g -Wall -Wextra -fno-strict-aliasing mu.cc -o mu
	-@./mu test

# To see what the program looks like after all layers have been applied, read
# mu.cc
mu.cc: 0*
	./tangle/tangle --until 999 > mu.cc
	@make autogenerated_lists >/dev/null

tangle/tangle:
	cd tangle && make

# auto-generated files; by convention they end in '_list'.
.PHONY: autogenerated_lists clena
autogenerated_lists: mu.cc function_list test_list

function_list: mu.cc
	@grep -h "^[^ #].*) {" mu.cc |perl -pwe 's/ {.*/;/' > function_list
	@grep -h "^[[:space:]]*TEST(" mu.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/void test_$$1();/' >> function_list

test_list: mu.cc
	@grep -h "^[[:space:]]*void test_" mu.cc |perl -pwe 's/^\s*void (.*)\(\) {.*/$$1,/' > test_list
	@grep -h "^[[:space:]]*TEST(" mu.cc |perl -pwe 's/^\s*TEST\((.*)\)$$/test_$$1,/' >> test_list

clena: clean
clean:
	cd tangle && make clean
	rm -rf mu.cc mu *_list