-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (22 loc) · 803 Bytes
/
Makefile
File metadata and controls
30 lines (22 loc) · 803 Bytes
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
SHELL=/bin/bash -o pipefail
BUILD_PRINT = \e[1;34mSTEP:
install-node:
@ echo -e "$(BUILD_PRINT)Installing the NodeJS$(END_BUILD_PRINT)"
@ sudo apt install npm
@ mkdir -p ~/.npm
@ npm config set prefix ~/.npm
@ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
@ nvm list-remote
@ nvm install lts/gallium
@ source ~/.bashrc
install-antora:
@ echo -e "$(BUILD_PRINT)Installing the Antora$(END_BUILD_PRINT)"
@ npm install
# install: install-node install-antora
# @ echo -e "$(BUILD_PRINT)Finish installation of the dev environment requirements$(END_BUILD_PRINT)"
#
# Optionally add the line below to ~/.bashrc
# export PATH="$PATH:$HOME/.npm/bin"
build-site:
@ echo -e "$(BUILD_PRINT)Build site$(END_BUILD_PRINT)"
@ npx antora --fetch antora-playbook.yml