-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (51 loc) · 1 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
include lib/core.mk
include lib/usage.mk
.DEFAULT_GOAL := bundle
.SHELLFLAGS := -ce
SHELL := bash
##
# Files that should be included in the distribution bundle.
#
BUNDLE_FILES = bootstrap.mk
##
# Dir where distribution bundles are created in.
#
DIST_DIR = _site
##
# Dir where the distribution bundle is created in.
#
DIST_VERSION_DIR = $(DIST_DIR)/$(MAKEPHILE_VERSION)
##
# Build the Docker image.
#
.PHONY: build
build:
$(phil_target_info)
@docker compose build
##
# Run tests.
#
.PHONY: tests
tests:
$(phil_target_info)
@docker compose run makephile --directory tests tests
##
# Builds a distribution bundle.
#
.PHONY: bundle
bundle: $(DIST_DIR)
$(phil_target_info)
@cp -v -a bootstrap.mk makephile.mk m include $(DIST_DIR)/
$(info Done.)
.PHONY: clean
clean:
$(phil_target_info)
@if [ -e $(DIST_DIR) ]; then \
echo -n "Removing distribution bundle '$(DIST_DIR)'..."; \
rm -r $(DIST_DIR); \
echo " Done."; \
fi
help: makephile_usage
$(DIST_DIR):
$(phil_target_info)
@mkdir -p $@