Blob


2 SRC != find src -name '*.rs'
4 RUSTFLAGS = -C relocation-model=static \
5 -L native=/usr/lib \
6 -l static=c \
7 -l static=c++abi \
8 -l static=pthread \
9 -C link-arg=-static \
10 -C panic=abort
12 all: www.cgi
14 clean:
15 cargo clean
16 rm -f www.cgi
18 install: www.cgi
19 ssh server "cd /var/www/bin && cat - > www.cgi.new && chmod 755 www.cgi.new && mv www.cgi.new www.cgi" < www.cgi
20 openrsync --rsync-path=/usr/bin/openrsync -tr --delete --exclude fix www-cgi server:/var/www/htdocs/
22 www.cgi: ${SRC} src/style.css
23 cargo rustc --release -- ${RUSTFLAGS}
24 mv -f target/release/www-cgi www.cgi