]> git.ipfire.org Git - thirdparty/util-linux.git/blob - Makefile.am
uuidd: add systemd unit files
[thirdparty/util-linux.git] / Makefile.am
1 include $(top_srcdir)/config/include-Makefile.am
2
3 SHLIBS_DIRS =
4
5 if BUILD_LIBUUID
6 SHLIBS_DIRS += libuuid
7 endif
8
9 if BUILD_LIBBLKID
10 SHLIBS_DIRS += libblkid
11 endif
12
13 if BUILD_LIBMOUNT
14 SHLIBS_DIRS += libmount
15 endif
16
17 MAN_DIRS = man/ru
18
19 SUBDIRS = \
20 $(MAN_DIRS) \
21 $(SHLIBS_DIRS) \
22 disk-utils \
23 fdisk \
24 getopt \
25 include \
26 lib \
27 login-utils \
28 misc-utils \
29 po \
30 sys-utils \
31 term-utils \
32 tests \
33 text-utils
34
35
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
38
39 if BUILD_HWCLOCK
40 SUBDIRS += hwclock
41 endif
42
43 if BUILD_PARTX
44 SUBDIRS += partx
45 endif
46
47 if BUILD_MOUNT
48 SUBDIRS += mount
49 endif
50
51 if BUILD_SCHEDUTILS
52 SUBDIRS += schedutils
53 endif
54
55 AUTOMAKE_OPTIONS = gnu
56 ACLOCAL_AMFLAGS = -I m4
57
58 EXTRA_DIST = \
59 .version \
60 autogen.sh \
61 Documentation \
62 po/update-potfiles \
63 README.licensing
64
65 # Arrange so that .tarball-version appears only in the distribution
66 # tarball, and never in a checked-out repository.
67 dist-hook:
68 echo $(VERSION) > $(distdir)/.tarball-version
69 # Set ChangeLog tag reference.
70 sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog
71
72 distclean-local:
73 -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f
74 rm -rf autom4te.cache
75
76
77 checkincludes:
78 @find * $(RCS_FIND_IGNORE) \
79 -name '*.[hcS]' -type f -print | sort -u \
80 | xargs $(top_srcdir)/tools/checkincludes.pl
81
82 checkconfig:
83 @find * $(RCS_FIND_IGNORE) \
84 -name '*.[hcS]' -type f -print | sort -u \
85 | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir)
86
87 checkxalloc:
88 @ $(top_srcdir)/tools/checkxalloc.sh
89
90 ENABLE_ALL = --enable-static-programs --enable-most-builds
91 DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group \
92 --disable-silent-rules $(ENABLE_ALL) \
93 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
94
95
96 BUILT_SOURCES = .version
97 .version:
98 echo $(VERSION) > $@-t && mv $@-t $@
99
100 CHANGELOG_FILE = v$(VERSION)-ChangeLog
101
102 $(CHANGELOG_FILE):
103 @ if test "x$$PREVIOUS_VERSION" == "x"; then \
104 echo "Usage make changelog PREVIOUS_VERSION=<version>"; \
105 exit 1; \
106 fi
107 @ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE)
108 @ echo "--------------------------------------------" >> $(CHANGELOG_FILE)
109 @ echo >> $(CHANGELOG_FILE)
110 $(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE)
111
112 changelog: $(CHANGELOG_FILE)
113
114