diff --git a/.gitignore b/.gitignore index d15459a..baa33c0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ docs -quickjs-types-*.tgz +quickjs-types*.tar.gz +quickjs-types*.tgz diff --git a/Makefile b/Makefile index f7de5db..a19c6e3 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +TYPES=$(wildcard *.d.ts) DOCS=docs README=README.md @@ -6,6 +7,8 @@ HEADER=$(DOCS)/header.html INDEX=$(DOCS)/index.html STYLES=$(DOCS)/styles.css +ARTIFACT=quickjs-types.tar.gz + PANDOC=pandoc ifdef PANDOC_DOCKER @@ -43,6 +46,10 @@ $(STYLES): @curl -s -L https://gist.githubusercontent.com/killercup/5917178/raw/40840de5352083adb2693dc742e9f75dbb18650f/pandoc.css \ > $@ +release: $(ARTIFACT) +$(ARTIFACT): $(TYPES) $(README) LICENSE package.json + tar cf $@ $? + .PHONY: clean clean: - rm -rf docs + rm -rf $(DOCS) *.tgz *.tar.gz