-
Notifications
You must be signed in to change notification settings - Fork 159
/
Makefile
67 lines (55 loc) · 1.38 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
NAME := web
DIST := ${CURDIR}/dist
HUGO := ${CURDIR}/hugo
RELEASE := ${CURDIR}/release
OCX_RELEASE := $(CURDIR)/build/dist
NODE_MODULES := ${CURDIR}/node_modules
node_modules: package.json yarn.lock
yarn install --frozen-lockfile && touch ${NODE_MODULES}
.PHONY: clean
clean:
rm -rf ${DIST} ${HUGO} ${RELEASE} ${OCX_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
mkdir -p $(CURDIR)/build/dist
cp $(CURDIR)/release/web-app.tar.gz $(CURDIR)/build/dist/
.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