summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 2f1a6e7235e5ab59c16c3f285e67db27828ecd51 (plain)
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
## Makefile.am for Oniguruma

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = src test sample

EXTRA_DIST = oniguruma.pc.in HISTORY README_japanese README.md \
	index.html index_ja.html make_win.bat \
	CMakeLists.txt oniguruma.pc.cmake.in cmake/Config.cmake.in \
	src/config.h.cmake.in \
	doc/API doc/API.ja doc/RE doc/RE.ja doc/FAQ doc/FAQ.ja \
	doc/CALLOUTS.BUILTIN doc/CALLOUTS.BUILTIN.ja \
	doc/CALLOUTS.API doc/CALLOUTS.API.ja \
	doc/UNICODE_PROPERTIES \
	src/Makefile.windows src/config.h.windows.in \
	src/config.h.win32 src/config.h.win64 \
	windows/testc.c contributed/libfuzzer-onig.cpp contributed/makefile

bin_SCRIPTS = onig-config

onig-config: onig-config.in

do_subst = sed                                          \
      -e 's,[@]datadir[@],$(datadir),g'                 \
      -e 's,[@]datarootdir[@],$(datarootdir),g'         \
      -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' \
      -e 's,[@]prefix[@],$(prefix),g'                   \
      -e 's,[@]exec_prefix[@],$(exec_prefix),g'         \
      -e 's,[@]libdir[@],$(libdir),g'                   \
      -e 's,[@]includedir[@],$(includedir),g'

oniguruma.pc: $(srcdir)/oniguruma.pc.in Makefile
	$(do_subst) < $(srcdir)/oniguruma.pc.in > $(@)

pkgconfigdir   = $(libdir)/pkgconfig
pkgconfig_DATA = oniguruma.pc


all-test:
	cd test; make test