forked from os-js/OS.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
80 lines (66 loc) · 1.9 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
75
76
77
78
79
80
#
# OS.js v2 Makefile
#
# Targets:
# all Build OS.js
# compress Compress dist
# clean Clean dist
# config Build only configuration files
# core Build only core files
# packages Build only package files
# themes Build only theme files
# manifest Create package manifest (you need to run 'make packages' first)
# apache-htaccess Generate new .htaccess files
# apache-vhost Generate new apache vhost config file
# lighttpd-config Generate new lighttpd config files
# dist-dev-index Generate new index.html for dist-dev
#
.PHONY: all clean config core themes packages compress manifest
.DEFAULT: all
#
# BUILDING
#
all: clean config core themes packages manifest
clean:
rm -f dist/themes.json ||:
rm -f dist-dev/themes.json ||:
rm -f dist/packages.json ||:
rm -f dist-dev/packages.json ||:
rm -f dist/osjs.* ||:
rm -rf dist/packages/* ||:
rm -rf dist/themes/* ||:
core:
@echo "\033[1;35mBuilding OS.js Core\033[0m"
rm -f dist/osjs.* ||:
(src/tools/obt core)
config:
@echo "\033[1;35mBuilding OS.js Configurations\033[0m"
(src/tools/obt config)
packages:
@echo "\033[1;35mBuilding Packages\033[0m"
rm -rf dist/packages/* ||:
(src/tools/obt packages)
themes:
@echo "\033[1;35mBuilding Themes\033[0m"
rm -rf dist/themes/* ||:
(src/tools/obt themes)
cp -R src/themes/wallpapers dist/themes/
compress:
@echo "\033[1;35mMaking compressed distro\033[0m"
(src/tools/obt compress)
manifest:
@echo "\033[1;35mCreating manifest files\033[0m"
rm -f dist/packages.json ||:
rm -f dist-dev/packages.json ||:
(src/tools/obt package-manifest)
rm -f dist/themes.json ||:
rm -f dist-dev/themes.json ||:
(src/tools/obt theme-manifest)
apache-htaccess:
(src/tools/obt apache-htaccess)
apache-vhost:
(src/tools/obt apache-vhost)
lighttpd-config:
(src/tools/obt lighttpd-config)
dist-dev-index:
(src/tools/obt dist-dev-index)