-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (30 loc) · 1.02 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
BASEDIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
all: 3rdparty config opt css
prepare_offline:
$(MAKE) -C 3rdparty download
$(MAKE) -C opt/gitea download
$(MAKE) -C opt/backup download
.PHONY: 3rdparty
3rdparty:
$(MAKE) -C 3rdparty all
.PHONY: opt
opt: config
$(MAKE) -C opt/gitea
$(MAKE) -C opt/backup install
.PHONY: distclean
distclean:
$(MAKE) -C 3rdparty clean
$(MAKE) -C opt/backup clean
$(RM) example/www/css/bootstrap.min.css
$(RM) example/www/css/bootstrap.min.css.map
$(RM) -r var/log/*
$(RM) -r var/exit/*
$(RM) run/pids/*
config:
ln -s example/tuls_config config
.PHONY: css
css: example/tuls_config//www/css/bootstrap.min.css example/tuls_config//www/css/bootstrap.min.css.map
example/tuls_config//www/css/bootstrap.min.css:
cat 3rdparty/bootstrap/bootstrap.min.css.gz | gunzip > example/tuls_config//www/css/bootstrap.min.css
example/tuls_config//www/css/bootstrap.min.css.map:
cat 3rdparty/bootstrap/bootstrap.min.css.map.gz | gunzip > example/tuls_config//www/css/bootstrap.min.css.map