forked from cucumber/common
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (38 loc) · 1007 Bytes
/
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
SHELL := /usr/bin/env bash
PACKAGES ?= c21e \
messages \
gherkin \
cucumber-expressions \
tag-expressions \
fake-cucumber \
query \
json-formatter \
react \
html-formatter \
compatibility-kit \
datatable \
config \
demo-formatter
default: .rsynced $(patsubst %,default-%,$(PACKAGES))
.PHONY: default
default-%: %
cd $< && make default
update-dependencies: $(patsubst %,update-dependencies-%,$(PACKAGES))
.PHONY: update-dependencies
update-dependencies-%: %
cd $< && make update-dependencies
clean: $(patsubst %,clean-%,$(PACKAGES))
rm -f .rsynced
.PHONY: clean
clean-%: %
cd $< && make clean
ci: check_synced push_subrepos default
check_synced: .rsynced
[[ -z $$(git status -s) ]] || (echo "Working copy is dirty. Please run `source scripts/functions.sh && rsync_files` and commit modified files." && exit 1)
.PHONY: check_synced
push_subrepos:
source scripts/functions.sh && push_subrepos .
.PHONY: push_subrepos
.rsynced:
source scripts/functions.sh && rsync_files
touch $@