forked from ggreer/the_silver_searcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
52 lines (39 loc) · 1.29 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
AM_DEFAULT_VERBOSITY = 1
bin_PROGRAMS = ag
ag_SOURCES = src/ignore.c src/ignore.h src/log.c src/log.h src/options.c src/options.h src/print.c src/print.h src/scandir.c src/scandir.h src/search.c src/search.h src/lang.c src/lang.h src/util.c src/util.h src/decompress.c src/decompress.h src/uthash.h src/pcre_api.c src/pcre_api.h src/main.c src/zfile.c
if HAVE_PCRE2
ag_LDADD = ${PCRE2_LIBS}
else
ag_LDADD = ${PCRE_LIBS}
endif
ag_LDADD += ${LZMA_LIBS} ${ZLIB_LIBS} $(PTHREAD_LIBS)
if WINDOWS
ag_SOURCES += src/print_w32 c
endif
dist_man_MANS = doc/ag.1
bashcompdir = $(pkgdatadir)/completions
dist_bashcomp_DATA = ag.bashcomp.sh
zshcompdir = $(datadir)/zsh/site-functions
dist_zshcomp_DATA = _the_silver_searcher
EXTRA_DIST = Makefile.w32 LICENSE NOTICE the_silver_searcher.spec README.md
all:
@$(MAKE) ag -r
test: ag
cram -v tests/*.t
if HAS_CLANG_FORMAT
CLANG_FORMAT=${CLANG_FORMAT} ./format.sh test
else
@echo "clang-format is not available. Skipped clang-format test."
endif
test_small: ag
cram -v tests/small/*.t
test_small_compressed: ag
cram -v tests/small/small_file_*compressed.t
test_big: ag
cram -v tests/big/*.t
test_big_compressed: ag
cram -v tests/big/big_file_*compressed.t
test_fail: ag
cram -v tests/fail/*.t
.PHONY : all clean test test_big test_fail