1 cf93616e 2024-06-26 benni PREFIX = /usr/local
3 cf93616e 2024-06-26 benni SRC_RS != find src -name '*.rs'
4 cf93616e 2024-06-26 benni SRC = ${SRC_RS} src/grammar.pest
6 cf93616e 2024-06-26 benni CARGO = cargo
8 cf93616e 2024-06-26 benni all: autovis
10 cf93616e 2024-06-26 benni run: autovis
11 cf93616e 2024-06-26 benni ./autovis -o example.gif example.dv 011
14 cf93616e 2024-06-26 benni rm -rf target
15 cf93616e 2024-06-26 benni rm -f autovis
17 cf93616e 2024-06-26 benni install: autovis
18 cf93616e 2024-06-26 benni mkdir -p ${DESTDIR}${PREFIX}/bin
19 cf93616e 2024-06-26 benni cp -f autovis ${DESTDIR}${PREFIX}/bin/
21 cf93616e 2024-06-26 benni autovis: ${SRC}
22 cf93616e 2024-06-26 benni ${CARGO} build --release
23 cf93616e 2024-06-26 benni cp target/release/autovis .