-
Notifications
You must be signed in to change notification settings - Fork 157
/
Makefile
74 lines (61 loc) · 1.62 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
NAME := web
DIST := ${CURDIR}/dist
HUGO := ${CURDIR}/hugo
RELEASE := ${CURDIR}/release
NODE_MODULES := ${CURDIR}/node_modules
node_modules: package.json pnpm-lock.yaml
[ -n "${NO_INSTALL}" ] || pnpm install
touch ${NODE_MODULES}
.PHONY: clean
clean:
rm -rf ${DIST} ${HUGO} ${RELEASE} ${NODE_MODULES}
.PHONY: release
release: clean
make -f Makefile.release
#
# Release
# make this app compatible with the ownCloud
# default build tools
#
.PHONY: dist
dist:
make -f Makefile.release
.PHONY: docs
docs: docs-copy docs-build
.PHONY: docs-copy
docs-copy:
mkdir -p $(HUGO); \
mkdir -p $(HUGO)/content/extensions; \
cd $(HUGO); \
git init; \
git remote rm origin; \
git remote add origin https://github.com/owncloud/owncloud.github.io; \
git fetch; \
git checkout origin/main -f; \
make -C $(HUGO) theme; \
rsync --delete -ax ../docs/ content/$(NAME)
.PHONY: docs-build
docs-build:
cd $(HUGO); hugo
.PHONY: l10n-push
l10n-push:
make -C packages/web-runtime/l10n push
.PHONY: l10n-pull
l10n-pull:
make -C packages/web-runtime/l10n pull
.PHONY: l10n-clean
l10n-clean:
make -C packages/web-runtime/l10n clean
.PHONY: l10n-read
l10n-read: node_modules
make -C packages/web-runtime/l10n extract
.PHONY: l10n-write
l10n-write: node_modules
make -C packages/web-runtime/l10n translations
.PHONY: generate-qa-activity-report
generate-qa-activity-report: node_modules
@if [ -z "${MONTH}" ] || [ -z "${YEAR}" ]; then \
echo "Please set the MONTH and YEAR environment variables. Usage: make generate-qa-activity-report MONTH=<month> YEAR=<year>"; \
exit 1; \
fi
pnpm exec node generate-qa-activity-report.js --month ${MONTH} --year ${YEAR}