2024-01-18 14:33:52 +01:00
|
|
|
.PHONY: build minify clean release deploy_test
|
|
|
|
|
2024-01-18 18:09:45 +01:00
|
|
|
BASEURL ?= https://c3re.de
|
2024-01-18 14:33:52 +01:00
|
|
|
|
|
|
|
release: build minify
|
|
|
|
|
|
|
|
build: clean
|
2024-01-18 18:09:45 +01:00
|
|
|
hugo --gc --minify --cleanDestinationDir -b "${BASEURL}" --enableGitInfo --panicOnWarning
|
2024-01-18 14:33:52 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf public dist
|
|
|
|
|
|
|
|
minify: dist build
|
2024-01-18 18:09:45 +01:00
|
|
|
minify -a -r -o dist/ public/. -q --exclude "public/js/jquery-3.7.1.min.js" --html-keep-document-tags
|
2024-01-18 14:33:52 +01:00
|
|
|
cp -rp public/js/jquery-3.7.1.min.js dist/public/js/jquery-3.7.1.min.js
|
|
|
|
mv dist/public/* dist/
|
|
|
|
rm -rf dist/public
|
|
|
|
|
|
|
|
dist:
|
|
|
|
mkdir dist
|
|
|
|
|
2024-01-18 18:09:45 +01:00
|
|
|
deploy_test:
|
|
|
|
make BASEURL=https://c3retest.shnbk.de release
|
2024-01-18 14:33:52 +01:00
|
|
|
rsync -rv --delete dist/* shnbk.de:domains/c3retest.shnbk.de/htdocs
|