-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile.am
More file actions
58 lines (46 loc) · 1.54 KB
/
Makefile.am
File metadata and controls
58 lines (46 loc) · 1.54 KB
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
53
54
55
56
57
58
AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-buffer-size=512 \
--with-python-impls='pypy pypy3 python2.7 python3.6 python3.7 python3.8 python3.9 python3.10'
bin_PROGRAMS = python-exec2c
scriptroot_SCRIPTS = python-exec2
check_PROGRAMS = test/bin/print-bufsiz test/bin/python-exec2c
check_SCRIPTS = test/bin/python-exec2
python_exec2c_SOURCES = src/python-exec.c
python_exec2c_CPPFLAGS = \
-DEXEEXT=\"${EXEEXT}\" \
-DPYTHON_SCRIPTROOT=\"${scriptrootdir}\" \
-DSYSCONFDIR=\"${sysconfdir}\" \
-DNDEBUG
test_bin_python_exec2c_SOURCES = src/python-exec.c
test_bin_python_exec2c_CPPFLAGS = \
-DEXEEXT=\"${EXEEXT}\" \
-DPYTHON_SCRIPTROOT=\"test/data\" \
-DSYSCONFDIR=\"test/data/etc\" \
-UNDEBUG
test_bin_print_bufsiz_SOURCES = src/print-bufsiz.c
EXTRA_DIST = src/python-exec.in config/python-exec.conf.example
CLEANFILES = python-exec2
clean-local:
rm -r -f test/bin test/data test/__pycache__ .pytest_cache
python-exec2: src/python-exec.in config.status
rm -f $@ $@.tmp
@SED@ -e "s|[@]bindir@|${bindir}|" \
-e "s|[@]PYTHON_SCRIPTROOT@|${scriptrootdir}|" \
-e "s|[@]exeext@|${EXEEXT}|g" $< > $@.tmp
chmod a-w,a+x $@.tmp
mv $@.tmp $@
test/bin/python-exec2: src/python-exec.in config.status
$(MKDIR_P) test/bin
rm -f $@ $@.tmp
@SED@ -e "s|[@]bindir@|./test/bin|" \
-e "s|[@]PYTHON_SCRIPTROOT@|test/data|" \
-e "s|[@]exeext@|${EXEEXT}|g" $< > $@.tmp
chmod a-w,a+x $@.tmp
mv $@.tmp $@
EXTRA_DIST += pytest.ini
check-local:
pytest -vv -ra -l -m "not symlink" test
if HAVE_READLINK
pytest -vv -ra -l -m "symlink" test
endif
EXTRA_DIST += COPYING README