root/Makefile.am

Revision f0a22debf6a7ab17726aef3a545efcbfed18abc0, 2.8 kB (checked in by Jim Meyering <meyering@redhat.com>, 4 months ago)

Exempt a build-related script from the copyright check.

* .x-sc_GPL_version: New file.
* Makefile.am (EXTRA_DIST): Add .x-sc_GPL_version.

  • Property mode set to 100644
Line 
1 ACLOCAL_AMFLAGS = -I m4
2 SUBDIRS = po lib libparted parted partprobe include doc debug tests
3
4 EXTRA_DIST =                            \
5   .version                              \
6   .prev-version                         \
7   BUGS                                  \
8   libparted.pc.in                       \
9   parted.spec.in                        \
10   parted.spec                           \
11   .x-sc_GPL_version                     \
12   scripts/data/abi/baseline_symbols.txt \
13   scripts/extract_symvers               \
14   cfg.mk                                \
15   maint.mk                              \
16   GNUmakefile
17
18 aclocaldir=$(datadir)/aclocal
19
20 pcdir = $(libdir)/pkgconfig
21 pc_DATA = libparted.pc
22
23 # This is best not done via configure.ac, because automake's
24 # make distcheck target does not like auto-generated files
25 # being included in the distributed archive.
26 parted.spec: parted.spec.in
27         sed 's/@''PACKAGE@/$(PACKAGE)/;s/@''VERSION@/$(VERSION)/' $< > $@-tmp
28         mv $@-tmp $@
29 MAINTAINERCLEANFILES = parted.spec
30
31 distcheck-hook:
32         $(MAKE) my-distcheck
33
34 ### ABI Checking scripts ###
35
36 baseline_file = ${top_srcdir}/scripts/data/abi/baseline_symbols.txt
37 extract_symvers = $(top_srcdir)/scripts/extract_symvers
38
39 current_symbols.txt: ${extract_symvers}
40           -@(sh ${extract_symvers} libparted/.libs/libparted.so current_symbols.txt)
41
42 baseline_symbols:
43         -@(output=${baseline_file}; \
44           if test ! -f $${output}; then \
45             echo "Baseline file doesn't exist."; \
46             echo "Try 'make new-abi-baseline' to create it."; \
47             exit 1; \
48           fi; true)
49
50 new-abi-baseline:
51         -@$(mkinstalldirs) ${baseline_dir}
52         -@(output=${baseline_file}; \
53           if test -f $${output}; then \
54             output=$${output}.new; \
55             t=`echo $${output} | sed 's=.*config/abi/=='`; \
56             echo "Baseline file already exists, writing to $${t} instead."; \
57           fi; \
58           sh ${extract_symvers} libparted/.libs/libparted.so $${output})
59
60 # Use 'new-abi-baseline' to create an initial symbol file.  Then run
61 # 'check-abi' to test for changes against that file.
62 check-abi: baseline_symbols current_symbols.txt
63         @diff -u ${baseline_file} ./current_symbols.txt 2>&1 \
64          | tee libparted.abi-diff
65         @test `wc -l < libparted.abi-diff` -gt 0 \
66          && (echo "ABI has changed. Please, update you ABI package version."; exit 1) \
67          || exit 0
68
69 MOSTLYCLEANDIRS = m4
70
71 MAINTAINERCLEANFILES += \
72   ABOUT-NLS     \
73   ChangeLog     \
74   INSTALL       \
75   aclocal.m4    \
76   configure
77
78 # Arrange so that .tarball-version appears only in the distribution
79 # tarball, and never in a checked-out repository.
80 # The perl substitution is to change some key uses of "rm" to "/bin/rm".
81 # See the rm_subst comment for details.
82 dist-hook: gen-ChangeLog
83         echo $(VERSION) > $(distdir)/.tarball-version
84         perl -pi -e '$(rm_subst)' $(distdir)/src/Makefile.in
85
86 gen_start_date = 2000-01-01
87 .PHONY: gen-ChangeLog
88 gen-ChangeLog:
89         if test -d .git; then                                           \
90           $(top_srcdir)/build-aux/gitlog-to-changelog                   \
91             --since=$(gen_start_date) > $(distdir)/cl-t;                \
92           rm -f $(distdir)/ChangeLog;                                   \
93           mv $(distdir)/cl-t $(distdir)/ChangeLog;                      \
94         fi
95
96 BUILT_SOURCES = .version
97 .version:
98         echo $(VERSION) > $@-t && mv $@-t $@
Note: See TracBrowser for help on using the browser.