forked from observatorium/observatorium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
45 lines (33 loc) · 1013 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
include .bingo/Variables.mk
CONFIGURATION_DIR ?= ./configuration
WEBSITE_DIR ?= website
WEBSITE_BASE_URL ?= https://observatorium.io
all: generate validate
.PHONY: fmt
fmt:
@$(MAKE) -C $(CONFIGURATION_DIR) fmt
.PHONY: lint
lint:
@$(MAKE) -C $(CONFIGURATION_DIR) lint
.PHONY: generate
generate:
@$(MAKE) -C $(CONFIGURATION_DIR) generate
$(CONFIGURATION_DIR)/tests/manifests:
@$(MAKE) -C $(CONFIGURATION_DIR) tests/manifests
.PHONY: validate
validate:
@$(MAKE) -C $(CONFIGURATION_DIR) validate
.PHONY: vendor
vendor:
@$(MAKE) -C $(CONFIGURATION_DIR) vendor
# TODO(bwplotka): This is no longer needed, remove when netlify job will be updated.
web-theme:
$(WEBSITE_DIR)/node_modules:
@git submodule update --init --recursive
cd $(WEBSITE_DIR)/themes/doks/ && npm install && rm -rf content
.PHONY: web
web: $(WEBSITE_DIR)/node_modules $(HUGO)
cd $(WEBSITE_DIR) && $(HUGO) -b $(WEBSITE_BASE_URL)
.PHONY: web-serve
web-serve: $(WEBSITE_DIR)/node_modules $(HUGO)
@cd $(WEBSITE_DIR) && $(HUGO) serve