File: Makefile

package info (click to toggle)
aspell 0.60.8.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,336 kB
  • sloc: cpp: 24,378; sh: 12,340; perl: 1,924; ansic: 1,661; makefile: 852; sed: 16
file content (29 lines) | stat: -rw-r--r-- 1,037 bytes parent folder | download | duplicates (2)
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
# -*- makefile -*-

# Some info about autopkgtest environment:
# AUTOPKGTEST_BASEDIR: Dir created with mktemp. NOT AVAILABLE AS ENVVAR.
# AUTOPKGTEST_TMP: AUTOPKGTEST_BASEDIR/autopkgtest_tmp
# $0: AUTOPKGTEST_BASEDIR/tree/debian/tests/${TEST_PROGRAM}
# PWD: AUTOPKGTEST_BASEDIR/tree    # autopkg starts at the unpacked source tree

all: sanity-check filter-check wide_test_valid wide_test_invalid wide_test_invalid-but_ok cxx_warnings_test

wide_test_valid: wide_test_valid.c
	$(CXX) $< -laspell -o $@
	./$@

wide_test_invalid: wide_test_invalid.c
	$(CXX) $< -laspell -o $@
	./$@ 2> $@.log || true
	grep -F -q 'Null-terminated wide-character strings unsupported when used this way.' "$@.log"

wide_test_invalid-but_ok: wide_test_invalid.c
	$(CXX) -DASPELL_ENCODE_SETTING_SECURE $< -laspell -o $@
	./$@

cxx_warnings_test: cxx_warnings_test.cpp
	$(CXX) -Wall -Wconversion -Werror -c $<

clean:
	rm -f wide_test_invalid.log cxx_warnings_test.o wide_test_invalid-but_ok wide_test_invalid wide_test_valid
	- ( cd tmp && rm -f * ); rmdir tmp