-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (26 loc) · 969 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
ROOT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BUILD_DIR = $(ROOT_DIR)/themes/ulule/static/build
OUTPUT_DIR = $(ROOT_DIR)/output
release: docker-prebuild docker-build publish
publish:
aws s3 cp `pwd`/output s3://ulule.engineering/ --recursive --exclude "*.scss" --exclude ".DS_Store" --profile ulule-engineering --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers
build:
pelican -s pelicanconf.py
rebuild:
pelican -d -s pelicanconf.py
regenerate:
pelican -r -s pelicanconf.py
dependencies:
pip install -r requirements.txt
reserve: build serve
watch:
npm run watch
serve:
cd output && python -m http.server
docker-build:
docker build -t engineering-builder .
docker run --rm -v $(OUTPUT_DIR):/app/output engineering-builder
docker-prebuild:
docker build -t engineering-prebuilder -f Dockerfile.build .
mkdir -p $(BUILD_DIR)
docker run --rm -v $(BUILD_DIR):/app/themes/ulule/static/build engineering-prebuilder