forked from LycheeOrg/Lychee
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
76 lines (70 loc) · 3.72 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
VERSION=`cat version.md`
FILES=$(wildcard *)
.PHONY: dist
dist: clean
@echo "packaging..."
@mkdir Lychee-v$(VERSION)
@mkdir Lychee-v$(VERSION)/public
@mkdir Lychee-v$(VERSION)/public/docs
@mkdir Lychee-v$(VERSION)/public/Lychee-front
@mkdir Lychee-v$(VERSION)/public/uploads
@mkdir Lychee-v$(VERSION)/public/uploads/small
@mkdir Lychee-v$(VERSION)/public/uploads/medium
@mkdir Lychee-v$(VERSION)/public/uploads/big
@mkdir Lychee-v$(VERSION)/public/uploads/thumb
@mkdir Lychee-v$(VERSION)/public/uploads/import
@cp -r public/dist Lychee-v$(VERSION)/public
@cp -r public/docs/* Lychee-v$(VERSION)/public/docs
@cp -r public/Lychee-front/images Lychee-v$(VERSION)/public/Lychee-front/images
@cp -r public/Lychee-front/scripts Lychee-v$(VERSION)/public/Lychee-front/scripts
@cp -r public/Lychee-front/styles Lychee-v$(VERSION)/public/Lychee-front/styles
@cp -r public/Lychee-front/API.md Lychee-v$(VERSION)/public/Lychee-front
@cp -r public/Lychee-front/gulpfile.js Lychee-v$(VERSION)/public/Lychee-front
@cp -r public/Lychee-front/LICENSE Lychee-v$(VERSION)/public/Lychee-front
@cp -r public/Lychee-front/package.json Lychee-v$(VERSION)/public/Lychee-front
@cp -r public/Lychee-front/README.md Lychee-v$(VERSION)/public/Lychee-front
@cp -r app Lychee-v$(VERSION)
@cp -r bootstrap Lychee-v$(VERSION)
@cp -r config Lychee-v$(VERSION)
@cp -r database Lychee-v$(VERSION)
@cp -r resources Lychee-v$(VERSION)
@cp -r routes Lychee-v$(VERSION)
@cp -r storage Lychee-v$(VERSION)
@cp -r tests Lychee-v$(VERSION)
@cp -r vendor Lychee-v$(VERSION) 2> /dev/null || true
@cp -r public/.htaccess Lychee-v$(VERSION)/public
@cp -r public/.gitignore Lychee-v$(VERSION)/public
@cp -r public/.user.ini Lychee-v$(VERSION)/public
@cp -r public/CODE_OF_CONDUCT.md Lychee-v$(VERSION)/public
@cp -r public/favicon.ico Lychee-v$(VERSION)/public
@cp -r public/index.php Lychee-v$(VERSION)/public
@cp -r public/robots.txt Lychee-v$(VERSION)/public
@cp -r public/web.config Lychee-v$(VERSION)/public
@cp -r .env.example Lychee-v$(VERSION)
@cp -r artisan Lychee-v$(VERSION)
@cp -r composer.json Lychee-v$(VERSION)
@cp -r composer.lock Lychee-v$(VERSION)
@cp -r LICENSE Lychee-v$(VERSION)
@cp -r phpunit.xml Lychee-v$(VERSION)
@cp -r readme.md Lychee-v$(VERSION)
@cp -r server.php Lychee-v$(VERSION)
@cp -r version.md Lychee-v$(VERSION)
@rm Lychee-v$(VERSION)/storage/framework/sessions/*
@rm Lychee-v$(VERSION)/storage/framework/views/*
@rm Lychee-v$(VERSION)/storage/logs/*
@touch Lychee-v$(VERSION)/storage/logs/laravel.log
@touch Lychee-v$(VERSION)/public/dist/user.css
@touch Lychee-v$(VERSION)/public/uploads/big/index.html
@touch Lychee-v$(VERSION)/public/uploads/small/index.html
@touch Lychee-v$(VERSION)/public/uploads/medium/index.html
@touch Lychee-v$(VERSION)/public/uploads/thumb/index.html
@touch Lychee-v$(VERSION)/public/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