1 include $(top_srcdir)/config/include-Makefile.am
10 SHLIBS_DIRS += libblkid
14 SHLIBS_DIRS += libmount
36 RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \
37 -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o
59 AUTOMAKE_OPTIONS = gnu
60 ACLOCAL_AMFLAGS = -I m4
70 # Arrange so that .tarball-version appears only in the distribution
71 # tarball, and never in a checked-out repository.
73 echo $(VERSION) > $(distdir)/.tarball-version
74 # Set ChangeLog tag reference.
75 sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog
78 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
83 @find * $(RCS_FIND_IGNORE) \
84 -name '*.[hcS]' -type f -print | sort -u \
85 | xargs $(top_srcdir)/tools/checkincludes.pl
88 @find * $(RCS_FIND_IGNORE) \
89 -name '*.[hcS]' -type f -print | sort -u \
90 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
93 @ $(top_srcdir)/tools/checkxalloc.sh
95 ENABLE_ALL = --enable-static-programs --enable-most-builds
96 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group $(ENABLE_ALL)
99 BUILT_SOURCES = .version
101 echo $(VERSION) > $@-t && mv $@-t $@
103 CHANGELOG_FILE = v$(VERSION)-ChangeLog
106 @ if test "x$$PREVIOUS_VERSION" == "x"; then \
107 echo "Usage make changelog PREVIOUS_VERSION=<version>"; \
110 @ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE)
111 @ echo "--------------------------------------------" >> $(CHANGELOG_FILE)
112 @ echo >> $(CHANGELOG_FILE)
113 $(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE)
115 changelog: $(CHANGELOG_FILE)