forked from LycheeOrg/Lychee-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
62 lines (55 loc) · 2.21 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
VERSION=`cat version.md`
FILES=$(wildcard *)
.PHONY: dist
dist: clean
@echo "packaging..."
@mkdir Lychee-v$(VERSION)
@mkdir Lychee-v$(VERSION)/data
@mkdir Lychee-v$(VERSION)/docs
@mkdir Lychee-v$(VERSION)/Lychee-front
@mkdir Lychee-v$(VERSION)/uploads
@mkdir Lychee-v$(VERSION)/uploads/small
@mkdir Lychee-v$(VERSION)/uploads/medium
@mkdir Lychee-v$(VERSION)/uploads/big
@mkdir Lychee-v$(VERSION)/uploads/thumb
@mkdir Lychee-v$(VERSION)/uploads/import
@cp -r data/.gitignore Lychee-v$(VERSION)/data
@cp -r dist Lychee-v$(VERSION)
@cp -r docs/* Lychee-v$(VERSION)/docs
@cp -r Lychee-front/images Lychee-v$(VERSION)/Lychee-front/images
@cp -r Lychee-front/scripts Lychee-v$(VERSION)/Lychee-front/scripts
@cp -r Lychee-front/styles Lychee-v$(VERSION)/Lychee-front/styles
@cp -r Lychee-front/API.md Lychee-v$(VERSION)/Lychee-front
@cp -r Lychee-front/gulpfile.js Lychee-v$(VERSION)/Lychee-front
@cp -r Lychee-front/LICENSE Lychee-v$(VERSION)/Lychee-front
@cp -r Lychee-front/package.json Lychee-v$(VERSION)/Lychee-front
@cp -r Lychee-front/README.md Lychee-v$(VERSION)/Lychee-front
@cp -r php Lychee-v$(VERSION)
@cp -r plugins Lychee-v$(VERSION)
@cp -r vendor Lychee-v$(VERSION) 2> /dev/null || true
@cp -r .htaccess Lychee-v$(VERSION)
@cp -r .user.ini Lychee-v$(VERSION)
@cp -r CODE_OF_CONDUCT.md Lychee-v$(VERSION)
@cp -r composer.json Lychee-v$(VERSION)
@cp -r composer.lock Lychee-v$(VERSION)
@cp -r favicon.ico Lychee-v$(VERSION)
@cp -r index.html Lychee-v$(VERSION)
@cp -r LICENSE Lychee-v$(VERSION)
@cp -r README.md Lychee-v$(VERSION)
@cp -r robots.txt Lychee-v$(VERSION)
@cp -r version.md Lychee-v$(VERSION)
@cp -r view.php Lychee-v$(VERSION)
@touch Lychee-v$(VERSION)/uploads/big/index.html
@touch Lychee-v$(VERSION)/uploads/small/index.html
@touch Lychee-v$(VERSION)/uploads/medium/index.html
@touch Lychee-v$(VERSION)/uploads/thumb/index.html
@touch Lychee-v$(VERSION)/uploads/import/index.html
@zip -r Lychee-v$(VERSION).zip Lychee-v$(VERSION)
contrib_add:
@echo "npx all-contributors-cli add <user> <bug|code|design|doc|question|tool|test|translation>"
contrib_generate:
npx all-contributors-cli generate
contrib_check:
npx all-contributors-cli check
clean:
@rm -r Lychee-v* 2> /dev/null || true