Files
kopia/site/Makefile
Jarek Kowalski c48f03fa78 readme: added build architecture doc
The slide was generated using Google Slides and the source is public at:

https://docs.google.com/presentation/d/1VhsANHnV5vs4vCmjVTFlMpDgDUBNtyU9Ex04EX0wNRI/edit?usp=sharing

If you need to modify it, please request permissions.
2020-02-18 12:18:33 -08:00

30 lines
738 B
Makefile

# don't put tools under current directory, otherwise 'make server' fails because there are too
# many open files due to 'node_modules'
WATCH=false
all: build
include ../tools/tools.mk
build: gen-cli-reference-pages $(hugo) node_modules
$(hugo)
server: $(hugo)
$(hugo) server --watch=$(WATCH)
node_modules: $(npm)
$(npm) $(npm_flags) install
clean:
rm -rf public/ resources/ node_modules/ $(TOOLS_DIR)/
gen-cli-reference-pages:
ifeq ($(OS),Windows_NT)
-rd /q /s content\\docs\\Reference\\Command-Line\\Advanced
-rd /q /s content\\docs\\Reference\\Command-Line\\Common
else
rm -rf content/docs/Reference/Command-Line/Advanced
rm -rf content/docs/Reference/Command-Line/Common
endif
go run github.com/kopia/kopia/site/cli2md