-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
43 lines (31 loc) · 1.44 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
%_clean::
rm -rf actions/$*/node_modules || echo "actions/$*/node_modules already deleted"
rm -rf actions/$*/dist || echo "actions/$*/dist already deleted"
rm -r actions/$*/package-lock.json || echo "actions/$*/package-lock.json already deleted"
clean_root::
rm -rf node_modules || echo "node_modules already deleted"
rm package-lock.json || echo "package-lock.json already deleted"
%_outdated::
cd actions/$* && \
npm outdated
%_make::
cd actions/$* && \
npm run prepare
make_root::
if [ ! -d "node_modules" ]; then npm install; fi && \
npm install --no-save prettier && \
npm install --no-save npm-check
%_test::
cd actions/$* && \
npm run all && \
npx prettier --check src && \
npx npm-check
%_prettier::
cd actions/$* && \
npx prettier --write src
all: make_root prettier josm_build_make josm_plugin_clone_make josm_plugin_dependencies_make setup-ant_make pmd_make checkstyle_make
clean: clean_root josm_build_clean josm_plugin_clone_clean josm_plugin_dependencies_clean setup-ant_clean pmd_clean checkstyle_clean
prettier: josm_build_prettier josm_plugin_clone_prettier josm_plugin_dependencies_prettier setup-ant_prettier pmd_prettier checkstyle_prettier
outdated: josm_build_outdated josm_plugin_clone_outdated josm_plugin_dependencies_outdated setup-ant_outdated pmd_outdated checkstyle_outdated
check: outdated josm_build_test josm_plugin_clone_test josm_plugin_dependencies_test setup-ant_test pmd_test checkstyle_test
test: all check