-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathMakefile
52 lines (42 loc) · 949 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
49
50
51
52
Name := file-picker
HUGO := hugo
node_modules: package.json pnpm-lock.yaml
pnpm install --frozen-lockfile && touch node_modules
#
# Docs
#
.PHONY: docs-copy
docs-copy:
mkdir -p $(HUGO); \
mkdir -p $(HUGO)/content/integration; \
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 theme; \
rsync --delete -ax ../docs/ content/integration/$(NAME)
.PHONY: docs-build
docs-build:
cd $(HUGO); hugo
.PHONY: docs
docs: docs-copy docs-build
#
# Translation
#
.PHONY: l10n-push
l10n-push:
cd l10n && tx push -s --skip
.PHONY: l10n-pull
l10n-pull:
cd l10n && tx pull -a
.PHONY: l10n-clean
l10n-clean:
cd l10n && make clean
.PHONY: l10n-read
l10n-read: node_modules
cd l10n && rm -rf template.pot && make extract
.PHONY: l10n-write
l10n-write: node_modules
cd l10n && rm -rf translations.json && make translations