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