summaryrefslogtreecommitdiffstats
path: root/tool/Makefile
blob: 0d90b3cdc019492a6fb6d20b7135f8c065594803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
CARGO	?= cargo
CARGO_TARGET_DIR	?= $(shell pwd)/../target
# We currently only support absolute paths.
CARGO_TARGET_DIR	:= $(abspath $(CARGO_TARGET_DIR))
SQ	?= $(CARGO_TARGET_DIR)/debug/sq

all: src/sq-usage.rs

# Maintenance.
.PHONY: update-usage
update-usage: src/sq-usage.rs

src/sq-usage.rs: make-usage.sh $(SQ)
	sh make-usage.sh $(SQ) >$@