2024-01-26 21:07:44 +01:00
|
|
|
.PHONY: build clean release deploy_test
|
2024-01-18 14:33:52 +01:00
|
|
|
|
2024-01-18 18:09:45 +01:00
|
|
|
BASEURL ?= https://c3re.de
|
2024-01-18 14:33:52 +01:00
|
|
|
|
2024-01-26 21:07:44 +01:00
|
|
|
release: build
|
2024-01-18 14:33:52 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
dist:
|
|
|
|
mkdir dist
|
|
|
|
|
2024-01-18 18:09:45 +01:00
|
|
|
deploy_test:
|
2024-01-19 10:52:25 +01:00
|
|
|
$(MAKE) BASEURL=https://c3retest.shnbk.de release
|
2024-01-26 21:07:44 +01:00
|
|
|
rsync -rv --delete public/* shnbk.de:domains/c3retest.shnbk.de/htdocs
|