summaryrefslogtreecommitdiffstats
path: root/tool/Makefile
blob: 196a4cfbfb1e14dbdf49041f14c5ec203e80c6d9 (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) >$@~ && mv $@~ $@