Files
kopia/site/Makefile
Jarek Kowalski cd69801082 chore(ci): fix npm audit failure by removing electron-first-run and upgrading electron and semver (#3101)
Fixed semi-manually:

```
npm remove electron-first-run

npm install electron@25.0.0

npm install semver@7.5.3
```
2023-07-03 20:25:28 +00:00

31 lines
669 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 --omit=dev
clean:
rm -rf public/ resources/ node_modules/ $(TOOLS_DIR)/
gen-cli-reference-pages: install-tools
$(cli2mdbin)