DESTDIR := artifacts
.PHONY: all debug clean install

all: public

public:
	mkdir -p public
	hugo -D

debug:
	hugo server -D

clean:
	rm -rf artifacts
	rm -rf public
	rm -rf resources
	rm -f .hugo_build.lock

install:
	rm -rf $(DESTDIR)
	cp -r public $(DESTDIR)