-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (37 loc) · 1.02 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
export PATH := node_modules/.bin:$(PATH)
export SHELL := /usr/bin/env bash
export OS := $(shell uname -s)
export PROVIDENCE_PACKAGES := providence providence-redux
.DEFAULT_GOAL := oneshot
install_prereqs:
@set -e
for package in $${PROVIDENCE_PACKAGES[@]} ; do \
cd $$package && make install_prereqs && cd .. ; \
done
build: # Build all of the NPM packages
@set -e
for package in $${PROVIDENCE_PACKAGES[@]} ; do \
cd $$package && make build && cd .. ; \
done
tarball: build
@set -e
for package in $${PROVIDENCE_PACKAGES[@]} ; do \
cd "$$package"/dist && make tarball && cd ../../ ; \
done
oneshot: install_prereqs build
quality:
@set -e
for package in $${PROVIDENCE_PACKAGES[@]} ; do \
cd $$package && make quality && cd .. ; \
done
test:
@set -e
for package in $${PROVIDENCE_PACKAGES[@]} ; do \
cd $$package && make test && cd .. ; \
done
publish: install_prereqs build qa
@set -e
for package in $${PROVIDENCE_PACKAGES[@]} ; do \
cd $$package && make publish && cd .. ; \
done
qa: quality test