Files
kopia/site/Makefile
Jarek Kowalski 5cf54906ec chore(site): upgraded site to latest hugo and removed vendored files (#3078)
* chore(site): upgraded site to latest hugo and removed vendored files

This switches to using github.com/google/docsy as a Hugo module,
so we don't need to vendor the theme anymore or its dependencies.

* layout

* more style, edit MD support

* style

* style

* fixed linter errors

* update text
2023-06-18 11:41:01 -07:00

31 lines
671 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
ifeq ($(NETLIFY)/$(CONTEXT),true/production)
export HUGO_ENV=production
endif
install-tools:
make -C .. $(npm) $(cli2mdbin) $(hugo)
build: install-tools gen-cli-reference-pages node_modules
$(hugo)
server: install-tools
$(hugo) server --watch=$(WATCH)
node_modules: install-tools
$(npm) $(npm_flags) install --no-audit
$(npm) $(npm_flags) audit --production
clean:
rm -rf public/ resources/ node_modules/ $(TOOLS_DIR)/
gen-cli-reference-pages: install-tools
$(cli2mdbin)