make: Add serve-gh-pages target

As github pages is served not on root but /go-org/ we need to move everything
into a subdirectory of that name when serving locally
This commit is contained in:
Niklas Fasching 2022-05-30 17:26:52 +02:00
parent 67951ec664
commit f8b8e73722
2 changed files with 7 additions and 3 deletions

View file

@ -33,6 +33,11 @@ generate-gh-pages: build
generate-fixtures: build
./etc/generate-fixtures
.PHONY: serve-gh-pages
serve-gh-pages: generate-gh-pages
cd docs && mkdir go-org && mv * go-org 2> /dev/null || true
cd docs && python3 -m http.server
.PHONY: fuzz
fuzz: build
@echo also see "http://lcamtuf.coredump.cx/afl/README.txt"