forked from GSA/fedramp-automation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (24 loc) · 1.04 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
export BASE_DIR=$(shell pwd)
# Most of the real work of the build is in sub-project Makefiles.
include src/examples/module.mk
include src/validations/module.mk
include src/web/module.mk
.PHONY: help
help:
@grep -h -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
all: clean test build ## Complete clean build with tests
init: init-repo init-validations init-web ## Initialize project dependencies
init-repo:
git submodule update --init --recursive
clean: clean-dist clean-validations clean-web ## Clean all
clean-dist: ## Clean non-RCS-tracked dist files
@echo "Cleaning dist..."
git clean -xfd dist
test: test-validations test-web test-examples ## Test all
build: build-validations build-web dist ## Build all artifacts and copy into dist directory
# Symlink for Federalist
ln -sf ./src/web/build _site
# Copy validations
mkdir -p dist/validations
cp src/validations/target/ssp.xsl dist/validations
cp -r src/validations/rules/ssp.sch dist/validations