-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
29 lines (22 loc) · 1.11 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
CALENDAR_VER=`cat release_number.txt`
MAKESELF_VER=2.4.2
makeself-$(MAKESELF_VER)/makeself.sh:
wget --quiet https://github.com/megastep/makeself/releases/download/release-$(MAKESELF_VER)/makeself-$(MAKESELF_VER).run
sh ./makeself-$(MAKESELF_VER).run
rm makeself-$(MAKESELF_VER).run
calendar-install-$(CALENDAR_VER).run: makeself-$(MAKESELF_VER)/makeself.sh install.sh hosts-localhost playbook.yml $(wildcard roles/**/*)
mkdir -p rpi-calendar
cp -r hosts-localhost install.sh roles playbook.yml rpi-calendar/.
# makeself.sh [args] archive_dir file_name label startup_script [script_args]
makeself-$(MAKESELF_VER)/makeself.sh --notemp rpi-calendar calendar-install-$(CALENDAR_VER).run "Installing setup scripts" ./install.sh
.PHONY: clean package release
clean:
rm -rf rpi-calendar calendar-install-*.run
package: calendar-install-$(CALENDAR_VER).run
release: package
git tag r$(CALENDAR_VER)
git push origin
curl -X POST -H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/jscarbor/rpi-calendar/releases \
-d '{"tag_name":"'r$(CALENDAR_VER)'"}'
expr $(CALENDAR_VER) + 1 >release_number.txt