forked from owncloud/web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 1.03 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
NAME := web
DIST := ${CURDIR}/dist
HUGO := ${CURDIR}/hugo
RELEASE := ${CURDIR}/release
NODE_MODULES := ${CURDIR}/node_modules
.PHONY: clean
clean:
rm -rf ${DIST} ${HUGO} ${RELEASE} ${NODE_MODULES}
.PHONY: release
release: clean
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/source -f; \
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