blob: 0629863145051612bcff9a53c0209bdf6a9fd053 (
plain) (
blame)
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
|
# Construye tu sitio web en texto-plano con Jekyll
# ------------------------------------------------
BUILD_DIR = _site
DEPLOY_DIR = $(HOME)/public_html
RSYNC = rsync
RSYNC_ARGS = -av
# Determina qué comando utilizar para llamar a jekyll
ifeq (, $(shell which jekyll26 2> /dev/null))
JEKYLL = bundle exec jekyll
else
JEKYLL = jekyll26
endif
all: build
build:
$(JEKYLL) build
serve:
$(JEKYLL) serve
clean:
$(JEKYLL) clean
deploy: build $(DEPLOY_DIR)
$(RSYNC) $(RSYNC_ARGS) $(BUILD_DIR)/ $(DEPLOY_DIR)
|