-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
66 lines (50 loc) · 2.2 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
62
63
64
65
66
BUILDDIR = build
BUILD_COMMAND = python3.9 -m sphinx -b html --jobs auto -W
BUILD_HELP_COMMAND = python3.9 -m sphinx -b text --jobs auto -W
all: base ampiq amp360 datagrid reference api tooltips modals contributing legacy
static:
cp -vr downloads $(BUILDDIR)/
base: static ## Build Amperity Documentation
# Building amperity_base/source...
$(BUILD_COMMAND) amperity_base/source $(BUILDDIR)/
ampiq: static ## Build the /ampiq topic collection
# Building User Guides for Marketers...
$(BUILD_COMMAND) amperity_ampiq/source $(BUILDDIR)/ampiq
amp360: static ## Build the /amp360 topic collection
# Building User Guides for Analysts...
$(BUILD_COMMAND) amperity_amp360/source $(BUILDDIR)/amp360
datagrid: static ## Build only the "/datagrid" section
# Building Configuration Guide pages...
$(BUILD_COMMAND) amperity_datagrid/source $(BUILDDIR)/datagrid
reference: static ## Build only the "/reference" section
# Building A-Z Reference pages...
$(BUILD_COMMAND) amperity_reference/source $(BUILDDIR)/reference
api: static ## Build only the "/api" section
# Building Amperity API pages...
$(BUILD_COMMAND) amperity_api/source $(BUILDDIR)/api
tooltips: static ## Build only the "/tooltips" section
# Building tooltips pages...
$(BUILD_COMMAND) amperity_help/source $(BUILDDIR)/tooltips
modals: static ## Build only the "/modals" section
# Building destination modal pages...
$(BUILD_COMMAND) amperity_modals/source $(BUILDDIR)/modals
contributing: static ## Build only the "/contributing" section
# Building Contributing pages...
$(BUILD_COMMAND) contributing/source $(BUILDDIR)/contributing
legacy: static ## Build only the "/legacy" section
# Building Legacy pages...
$(BUILD_COMMAND) legacy/source $(BUILDDIR)/legacy
clean: ## Flush the entire build directory
# Cleaning out build directory...
@rm -rf $(BUILDDIR)
serve: ## Start up a server on http://locahost:8080
serve -dir build
open http://localhost:8080
dependencies: ## Install all the required dependencies. You must have Homebrew installed first
brew install python
pip3 install -r requirements.txt
brew install serve
help:
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) \
| sed -n 's/^\(.*\): \(.*\)##\(.*\)/\1|\3/p' \
| column -t -s '|'