forked from jeanjack/fuz.web
First commit
This commit is contained in:
commit
aacf07e29d
26 changed files with 426 additions and 0 deletions
43
Makefile
Normal file
43
Makefile
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
include var.mk
|
||||
|
||||
all: init config build run
|
||||
|
||||
init:
|
||||
touch .gitmodules
|
||||
git submodule add ${git_template} ${git_submodulename} || :
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
config:
|
||||
echo "baseURL = '${base_url}'" > config.toml
|
||||
echo "languageCode = 'fr-fr'" >> config.toml
|
||||
echo "title = 'Fuz.re'" >> config.toml
|
||||
echo "theme = '${theme}'" >> config.toml
|
||||
|
||||
build:
|
||||
hugo -t $(theme)
|
||||
|
||||
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 || :
|
||||
git config --remove-section submodule.${git_submodulename} || :
|
||||
rm -rvf .git/modules/themes || :
|
||||
rm -rvf themes/* || :
|
||||
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
|
||||
@echo make => init config build run
|
||||
@echo make help
|
||||
Loading…
Add table
Add a link
Reference in a new issue