-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
36 lines (26 loc) · 876 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
all: test_unit
PROJECT = bugsnag-dsym-upload
VERSION = $(shell cat VERSION)
BINDIR := '/usr/local/bin'
MANDIR := '/usr/local/share/man'
INSTALLCMD := install -C
INSTALLDIRCMD := install -d
$(BINDIR)/$(PROJECT): bin/$(PROJECT)
@$(INSTALLDIRCMD) $(BINDIR)
@$(INSTALLCMD) bin/$(PROJECT) $@
$(MANDIR)/man1/$(PROJECT).1: man/$(PROJECT).pod
@$(INSTALLDIRCMD) $(MANDIR)/man1
@pod2man --center $(PROJECT) --release $(VERSION) man/$(PROJECT).pod > $@
@chmod 444 $@
.PHONY: bootstrap uninstall test test_unit test_features
install: $(BINDIR)/$(PROJECT) $(MANDIR)/man1/$(PROJECT).1
uninstall:
@rm $(BINDIR)/$(PROJECT) $(MANDIR)/man1/$(PROJECT).1
bootstrap:
@bundle install
@cd tools/fastlane-plugin && bundle install
test_unit:
@cd tools/fastlane-plugin && bundle exec rspec
test_features:
@bundle exec maze-runner -c features/*.feature
test: test_unit test_features