c3re-website/Makefile

29 lines
533 B
Makefile
Raw Normal View History

2024-01-29 20:12:43 +01:00
.PHONY: build clean release deploy_test pretty minify
2024-01-18 14:33:52 +01:00
BASEURL ?= https://c3re.de
2024-01-18 14:33:52 +01:00
2024-01-29 20:12:43 +01:00
release: build minify
2024-01-18 14:33:52 +01:00
build: clean
hugo --gc --minify --cleanDestinationDir -b "${BASEURL}" --enableGitInfo --panicOnWarning
2024-01-18 14:33:52 +01:00
clean:
rm -rf public dist
2024-01-29 20:12:43 +01:00
minify:
rm -rf tmp
mkdir -p tmp
cp -rp public/* tmp/
minify -q -a -r -o tmp/ public/
rm -rf public
mv tmp public
2024-01-18 14:33:52 +01:00
deploy_test:
2024-01-19 10:52:25 +01:00
$(MAKE) BASEURL=https://c3retest.shnbk.de release
2024-01-29 20:12:43 +01:00
rsync -rv --delete public/* shnbk.de:domains/c3retest.shnbk.de/htdocs
pretty:
prettier -w content/**/*