2022-05-14 17:19:38 +00:00
|
|
|
all: init build oldsite
|
2022-04-26 01:41:30 +00:00
|
|
|
|
|
|
|
init:
|
|
|
|
touch .gitmodules
|
|
|
|
git submodule add ${git_template} ${git_submodulename} || :
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
|
|
|
|
build:
|
|
|
|
hugo -t $(theme)
|
|
|
|
|
2022-05-14 17:19:38 +00:00
|
|
|
oldsite:
|
|
|
|
mkdir -p public
|
|
|
|
rm -fR public/contact
|
|
|
|
cp -a contact public/contact
|
|
|
|
|
2022-04-26 01:41:30 +00:00
|
|
|
run:
|
|
|
|
hugo server --bind ${bind_ip} --port ${bind_port}
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rvf public/* || :
|
|
|
|
rm -v .hugo_build.lock || :
|
|
|
|
find . -type f -name '*~' | xargs rm -v || :
|
|
|
|
|
|
|
|
mrproper: clean
|
|
|
|
rm .gitmodules || :
|
2022-05-14 17:19:38 +00:00
|
|
|
git config --remove-section submodule.${git_submodulename} || :
|
|
|
|
rm -rvf .git/modules/themes || :
|
|
|
|
rm -rvf themes/* || :
|
2022-04-26 01:41:30 +00:00
|
|
|
git rm --cached .gitmodules ${git_submodulename} || :
|
|
|
|
rm -rvf resources || :
|
|
|
|
help:
|
|
|
|
@echo make init
|
|
|
|
@echo make config
|
|
|
|
@echo make build
|
|
|
|
@echo make run
|
|
|
|
@echo make clean
|
|
|
|
@echo make mrproper
|
2022-04-27 08:44:13 +00:00
|
|
|
@echo make => init config build
|
2022-04-26 01:41:30 +00:00
|
|
|
@echo make help
|