1 ACLOCAL_AMFLAGS = -I m4
2 SUBDIRS = po lib libparted parted partprobe include doc debug
9 scripts/data/abi/baseline_symbols.txt \
10 scripts/extract_symvers
12 aclocaldir=$(datadir)/aclocal
13 aclocal_DATA=parted.m4
15 pcdir = $(libdir)/pkgconfig
16 pc_DATA = libparted.pc.in
18 dist-hook: parted.spec
19 cp parted.spec $(distdir)
21 ### ABI Checking scripts ###
23 baseline_file = ${top_srcdir}/scripts/data/abi/baseline_symbols.txt
24 extract_symvers = $(top_srcdir)/scripts/extract_symvers
26 current_symbols.txt: ${extract_symvers}
27 -@(sh ${extract_symvers} libparted/.libs/libparted.so current_symbols.txt)
30 -@(output=${baseline_file}; \
31 if test ! -f $${output}; then \
32 echo "Baseline file doesn't exist."; \
33 echo "Try 'make new-abi-baseline' to create it."; \
38 -@$(mkinstalldirs) ${baseline_dir}
39 -@(output=${baseline_file}; \
40 if test -f $${output}; then \
41 output=$${output}.new; \
42 t=`echo $${output} | sed 's=.*config/abi/=='`; \
43 echo "Baseline file already exists, writing to $${t} instead."; \
45 sh ${extract_symvers} libparted/.libs/libparted.so $${output})
47 # Use 'new-abi-baseline' to create an initial symbol file. Then run
48 # 'check-abi' to test for changes against that file.
49 check-abi: baseline_symbols current_symbols.txt
50 @diff -u ${baseline_file} ./current_symbols.txt 2>&1 \
51 | tee libparted.abi-diff
52 @test `wc -l < libparted.abi-diff` -gt 0 \
53 && (echo "ABI has changed. Please, update you ABI package version."; exit 1) \
58 MAINTAINERCLEANFILES = ABOUT-NLS \