File: Makefile

package info (click to toggle)
jdim 0.10.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,028 kB
  • sloc: cpp: 82,640; makefile: 799; sh: 134; xml: 115
file content (32 lines) | stat: -rw-r--r-- 538 bytes parent folder | download | duplicates (4)
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
BUNDLE := bundle
BUNDLE_DIR := .bundle/
GEMFILE_LOCK := Gemfile.lock

JEKYLL := $(BUNDLE) exec jekyll
DEST_DIR := _site/


.PHONY: all build clean distclean install run

all: run

build: $(BUNDLE_DIR)
	$(JEKYLL) build -d $(DEST_DIR)

clean:
	$(JEKYLL) clean -d $(DEST_DIR)

distclean: clean
	$(RM) -rf $(BUNDLE_DIR)
	$(RM) $(GEMFILE_LOCK)

install: $(GEMFILE_LOCK)

run: $(BUNDLE_DIR)
	$(JEKYLL) serve --watch -d $(DEST_DIR)


$(GEMFILE_LOCK):
	$(BUNDLE) install --jobs $(shell nproc) --path $(BUNDLE_DIR)

$(BUNDLE_DIR): $(GEMFILE_LOCK)