exec/Makefile
author František Kučera <franta-hg@frantovo.cz>
Sat, 11 Jan 2020 01:02:01 +0100
branchv_0
changeset 2 dace11211dc9
parent 0 4d5b3eda7be1
permissions -rw-r--r--
exec: protocol update + constants generator

.PHONY: all display display-messages display-protocol constants

all: protocol.pdf constants

protocol.pdf: messages.csv protocol.csv protocol.sh
	./protocol.sh

display: display-messages display-protocol

display-messages:
	cat messages.csv | relpipe-in-csv "messages" | relpipe-out-tabular

display-protocol:
	cat protocol.csv | relpipe-in-csv "protocol" | relpipe-out-tabular

constants: ExecMsg.h

ExecMsg.h: messages.csv constants.cpp.sh
	cat messages.csv | ./constants.cpp.sh > ExecMsg.h
	g++ ExecMsg.h
	rm ExecMsg.h.gch

clean:
	rm -f protocol.pdf
	rm -f ExecMsg.h