2022-04-07 15:52:18 +00:00
|
|
|
.PHONY: help build create debug clean
|
2022-03-29 22:52:36 +00:00
|
|
|
|
2022-04-07 15:52:18 +00:00
|
|
|
help:
|
|
|
|
@echo '= Make targets:'
|
|
|
|
@echo 'build: creates a public/ folder with the built static files'
|
|
|
|
@echo 'create: runs the development server serving the built static files'
|
|
|
|
@echo 'check: like create but production environment'
|
|
|
|
@echo 'debug: like create without drafts and with --debug'
|
|
|
|
@echo 'clean: deletes the public/ folder'
|
2022-03-29 22:52:36 +00:00
|
|
|
|
2022-04-07 15:52:18 +00:00
|
|
|
HUGO := hugo --printI18nWarnings --printPathWarnings --printUnusedTemplates --templateMetricsHints # --templateMetrics --cleanDestinationDir --gc
|
|
|
|
SERV := server --bind 0.0.0.0 --liveReloadPort 80 --appendPort=false --disableFastRender --printMemoryUsage --noHTTPCache --renderToDisk --navigateToChanged
|
|
|
|
DEV := $(HUGO) -e dev $(SERV)
|
|
|
|
|
|
|
|
build: # clean
|
|
|
|
$(HUGO) -e prod
|
|
|
|
|
|
|
|
check:
|
|
|
|
$(HUGO) -e prod $(SERV)
|
2022-03-29 22:52:36 +00:00
|
|
|
|
|
|
|
create:
|
2022-04-07 15:52:18 +00:00
|
|
|
$(DEV) -D
|
|
|
|
|
|
|
|
debug:
|
|
|
|
$(DEV) --debug
|
2022-03-30 15:06:21 +00:00
|
|
|
|
|
|
|
clean:
|
2022-04-07 15:52:18 +00:00
|
|
|
rm -fr public/ resources/
|