Skip to content

Commit 4fee556

Browse files
committed
chore: fix make caching
1 parent d29d9dd commit 4fee556

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

Makefile

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
1-
.PHONY: clean
1+
.PHONY: all
22

3-
docs: dist equiv-checker.html tsconfig.build.json
3+
all: Makefile node_modules/.stamp docs/.stamp dist/.stamp
4+
5+
####################################################
6+
7+
docs/.stamp: dist/.stamp equiv-checker.html tsconfig.build.json
48
npx typedoc --tsconfig tsconfig.build.json
59
cp -r dist/ docs/dist/
610
cp equiv-checker.html docs/
11+
touch $@
712

8-
dist: src node_modules tsconfig.build.json
13+
dist/.stamp: tsconfig.build.json src/*.ts
914
npx tsc --project tsconfig.build.json
1015
npx tsc-alias
16+
touch $@
1117

12-
node_modules: package-lock.json
18+
node_modules/.stamp: package-lock.json
1319
npm ci
14-
15-
####################################################
16-
17-
clean:
18-
rm -rf dist/ docs/
20+
touch $@

0 commit comments

Comments
 (0)