-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (36 loc) · 767 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
37
38
39
40
41
42
43
44
BUNDLE?= bundle
RDOC?= rdoc
VENDOR_DIR= $(CURDIR)/vendor
ifdef WITHOUT_CURSES
without_curses_arg= --without curses
else
without_curses_arg= # defined
endif
ifdef WITHOUT_TESTS
without_tests_arg= --without tests
else
without_tests_arg= # defined
endif
.PHONY: help
help:
@echo Available targets:
@echo - rdoc
@echo - bundle-install
@echo - unit-tests
.PHONY: rdoc
rdoc:
$(RDOC) --root=$(CURDIR) --all \
-t XXXFIXME \
-x "test/*" \
-x "example/*" \
-x "$(notdir $(VENDOR_DIR))/*" \
-x "Gemfile*" \
-x "Makefile" \
-m README.md \
-o rdoc
.PHONY: bundle-install
bundle-install:
$(BUNDLE) install $(without_curses_arg) $(without_tests_arg) --path $(CURDIR)/vendor
.PHONY: unit-tests
unit-tests:
$(BUNDLE) exec bacon tests/*.rb