streamlet/Makefile
branchv_0
changeset 3 03cd058c33ba
parent 2 dace11211dc9
equal deleted inserted replaced
2:dace11211dc9 3:03cd058c33ba
       
     1 .PHONY: all display display-messages display-protocol constants
       
     2 
       
     3 all: protocol.pdf constants
       
     4 
       
     5 protocol.pdf: messages.csv protocol.csv protocol.sh
       
     6 	./protocol.sh
       
     7 
       
     8 display: display-messages display-protocol
       
     9 
       
    10 display-messages:
       
    11 	cat messages.csv | relpipe-in-csv "messages" | relpipe-out-tabular
       
    12 
       
    13 display-protocol:
       
    14 	cat protocol.csv | relpipe-in-csv "protocol" | relpipe-out-tabular
       
    15 
       
    16 constants: StreamletMsg.h
       
    17 
       
    18 StreamletMsg.h: messages.csv constants.cpp.sh
       
    19 	cat messages.csv | ./constants.cpp.sh > StreamletMsg.h
       
    20 	echo '#include "StreamletMsg.h"' > StreamletMsg.envelope.h
       
    21 	g++ StreamletMsg.envelope.h
       
    22 	rm StreamletMsg.envelope.h
       
    23 	rm StreamletMsg.envelope.h.gch
       
    24 
       
    25 clean:
       
    26 	rm -f protocol.pdf
       
    27 	rm -f StreamletMsg.h