-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (34 loc) · 1008 Bytes
/
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
SHELL := bash
.PHONY: install
install:
@echo -n "Are you sure? [y/N] " && read ans && if [ $${ans:-'N'} != 'y' ]; then echo "exiting"; fi
@echo
@echo "checking system dependencies"
@bash bin/check_deps.bash
@echo
@echo "installing perl dependencies"
@cpanm -nq $(shell cat cpanfile|cut -d"'" -f2)
@echo
@echo "creating sqlite3 database"
@bash bin/create_database.bash
@echo
@echo "applying database patches"
@bash bin/apply_database_patches.bash
@echo
@echo "installation is complete"
@echo "create the cronjob and add the mastodon credentials to automate posting"
.PHONY: upgrade
upgrade:
@echo -n "Are you sure? [y/N] " && read ans && if [ $${ans:-'N'} != 'y' ]; then echo "exiting"; fi
@echo
@echo "updating repo"
@git fetch && git pull
@echo
@echo "checking system dependencies"
@bash bin/check_deps.bash
@echo
@echo "installing perl dependencies"
@cpanm -nq $(shell cat cpanfile|cut -d"'" -f2)
@echo
@echo "applying database patches"
@bash bin/apply_database_patches.bash