streamlet/Makefile
author František Kučera <franta-hg@frantovo.cz>
Sat, 11 Jan 2020 18:06:58 +0100
branchv_0
changeset 3 03cd058c33ba
parent 2 exec/Makefile@dace11211dc9
permissions -rw-r--r--
rename exec to streamlet
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
dace11211dc9 exec: protocol update + constants generator
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
     1
.PHONY: all display display-messages display-protocol constants
0
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     2
2
dace11211dc9 exec: protocol update + constants generator
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
     3
all: protocol.pdf constants
0
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     4
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     5
protocol.pdf: messages.csv protocol.csv protocol.sh
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     6
	./protocol.sh
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     7
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     8
display: display-messages display-protocol
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
     9
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    10
display-messages:
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    11
	cat messages.csv | relpipe-in-csv "messages" | relpipe-out-tabular
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    12
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    13
display-protocol:
4d5b3eda7be1 exec: protocol design draft
František Kučera <franta-hg@frantovo.cz>
parents:
diff changeset
    14
	cat protocol.csv | relpipe-in-csv "protocol" | relpipe-out-tabular
2
dace11211dc9 exec: protocol update + constants generator
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    15
3
03cd058c33ba rename exec to streamlet
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    16
constants: StreamletMsg.h
2
dace11211dc9 exec: protocol update + constants generator
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    17
3
03cd058c33ba rename exec to streamlet
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    18
StreamletMsg.h: messages.csv constants.cpp.sh
03cd058c33ba rename exec to streamlet
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    19
	cat messages.csv | ./constants.cpp.sh > StreamletMsg.h
03cd058c33ba rename exec to streamlet
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    20
	echo '#include "StreamletMsg.h"' > StreamletMsg.envelope.h
03cd058c33ba rename exec to streamlet
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    21
	g++ StreamletMsg.envelope.h
03cd058c33ba rename exec to streamlet
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    22
	rm StreamletMsg.envelope.h
03cd058c33ba rename exec to streamlet
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    23
	rm StreamletMsg.envelope.h.gch
2
dace11211dc9 exec: protocol update + constants generator
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    24
dace11211dc9 exec: protocol update + constants generator
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    25
clean:
dace11211dc9 exec: protocol update + constants generator
František Kučera <franta-hg@frantovo.cz>
parents: 0
diff changeset
    26
	rm -f protocol.pdf
3
03cd058c33ba rename exec to streamlet
František Kučera <franta-hg@frantovo.cz>
parents: 2
diff changeset
    27
	rm -f StreamletMsg.h