-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile.am
33 lines (24 loc) · 924 Bytes
/
Makefile.am
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
BUILT_SOURCES= parser.h
VERSION=2.6.1
AM_YFLAGS = -d
bin_PROGRAMS = roll
roll_CFLAGS = -Wall $(AM_CLFAGS)
roll_SOURCES = roll.c parser.y scanner.l roll.h
man_MANS = roll.1
TEST_LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
$(top_srcdir)/tap-driver.sh
TESTS=tests/*test
AUTOMAKE_OPTIONS = serial-tests
EXTRA_DIST = $(man_MANS) roll.spec COPYRIGHT $(TESTS) tests/test_functions.sh
README: README.md
if uname -a | grep -qi alpine ; then pandoc -f markdown -t plain $< -o $@ ; else cp README.md README; fi
NEWS: NEWS.md
if uname -a | grep -qi alpine ; then pandoc -f markdown -t plain $< -o $@ ; else cp NEWS.md NEWS; fi
rpm: dist
mkdir -p rpmroot/SOURCES rpmroot/BUILD
cp roll-$(VERSION).tar.gz rpmroot/SOURCES
rpmbuild --define "_topdir `pwd`/rpmroot" -ba roll.spec
if ENABLE_BASH_COMPLETION
bashcompletiondir = $(BASH_COMPLETION_DIR)
dist_bashcompletion_DATA = bash_completion/roll
endif