forked from xsf/xmpp-providers-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (28 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# SPDX-FileCopyrightText: 2022 XMPP Providers Team
#
# SPDX-License-Identifier: AGPL-3.0-or-later
PY=python3
HUGO=hugo
BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/content
OUTPUTDIR=$(BASEDIR)/public
TOOLSDIR=$(BASEDIR)/tools
help:
@echo 'Makefile for a hugo website '
@echo ' '
@echo 'Usage: '
@echo ' make clean remove the generated files '
@echo ' make publish generate using production settings '
@echo ' make serve serve site at http://localhost:1313'
@echo ' '
clean:
[ ! -d $(OUTPUTDIR) ] || rm -rf $(OUTPUTDIR)
serve:
$(PY) $(TOOLSDIR)/prepare.py
$(HUGO) version
$(HUGO) server --bind=0.0.0.0 --baseURL="http://localhost/" --buildFuture
publish:
$(PY) $(TOOLSDIR)/prepare.py
$(HUGO) version
$(HUGO)
.PHONY: help clean serve publish