forked from notcraig/pelican-free-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (33 loc) · 788 Bytes
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
VENV = .env
SIGAL = $(VENV)/bin/sigal
PELICAN = $(VENV)/bin/pelican
PELICAN_THEME = free-agent
SRC = source
CONTENT = content
DST = $(CONTENT)/images/portfolio
IMAGES = images
HTML = *.html
STATIC = static
AUTHOR = author
CATEGORY = category
FEEDS = feeds
all: requirements sigal-build pelican-build
venv:
-@virtualenv $(VENV) --python=python3
requirements: venv
@$(VENV)/bin/pip install -r requirements.txt
clean-output:
@rm -fr $(IMAGES) $(HTML) $(STATIC) $(AUTHOR) $(CATEGORY) $(FEEDS)
clean-content:
@rm -fr $(CONTENT)
clean-images:
@rm -fr $(DST)
clean-venv:
@rm -fr $(VENV)
distclean: clean-output clean-images clean-venv
sigal-init: requirements
-@$(SIGAL) init
sigal-build:
@$(SIGAL) build $(SRC) $(DST)
pelican-build:
@$(PELICAN) -t $(PELICAN_THEME) -o .