]>
Commit | Line | Data |
---|---|---|
fb55280a KZ |
1 | AM_CPPFLAGS = \ |
2 | -include config.h \ | |
3 | -I$(top_srcdir)/include \ | |
07a16b9d SK |
4 | -DLOCALEDIR=\"$(localedir)\" \ |
5 | -D_PATH_LOCALSTATEDIR=\"${localstatedir}\" | |
fb55280a KZ |
6 | AM_CFLAGS = -fsigned-char $(WARN_CFLAGS) |
7 | AM_LDFLAGS = | |
8 | ||
7bce71a3 KZ |
9 | # Add gettext stuff to the global LDADD for systems with separate libintl |
10 | # library. The LTLIBINTL is generated by AM_GNU_GETTEXT macro. | |
11 | # | |
12 | LDADD = $(LTLIBINTL) | |
13 | ||
fb55280a KZ |
14 | # Automake (at least up to 1.10) mishandles dist_man_MANS inside conditionals. |
15 | # Unlike with other dist primaries, the files are not distributed if the | |
16 | # conditional is false. | |
17 | # Work the bug around until it is fixed: | |
18 | dist_noinst_DATA = $(dist_man_MANS) | |
19 | ||
1a4d989e | 20 | # Paths to in-tree libraries (use ul_ prefix to avoid possible collisions) Note |
0bb4c979 KZ |
21 | # that blkid.h, libmount.h, libfdisk.h and libsmartcols.h are generated and |
22 | # stored in build dirs. | |
fb55280a KZ |
23 | # |
24 | ul_libblkid_incdir = $(top_builddir)/libblkid/src | |
25 | ul_libmount_incdir = $(top_builddir)/libmount/src | |
1a4d989e | 26 | ul_libsmartcols_incdir = $(top_builddir)/libsmartcols/src |
0bb4c979 KZ |
27 | ul_libfdisk_incdir = $(top_builddir)/libfdisk/src |
28 | ||
fb55280a | 29 | ul_libuuid_incdir = $(top_srcdir)/libuuid/src |
48d7b13a | 30 | |
3632ce21 KZ |
31 | pkgconfigdir = $(usrlib_execdir)/pkgconfig |
32 | ||
9cc36e9f SK |
33 | bashcompletiondir = @bashcompletiondir@ |
34 | ||
8365ed42 | 35 | dist_noinst_HEADERS = |
e0ef609e | 36 | noinst_PROGRAMS = |
f77a4d10 | 37 | noinst_LTLIBRARIES = |
5ed5df5d | 38 | usrbin_exec_PROGRAMS = |
ffeb2805 | 39 | usrsbin_exec_PROGRAMS = |
5ed5df5d | 40 | dist_man_MANS = |
3632ce21 KZ |
41 | man_MANS = |
42 | pkgconfig_DATA = | |
43 | usrlib_exec_LTLIBRARIES = | |
22d2322e KZ |
44 | bin_PROGRAMS = |
45 | sbin_PROGRAMS = | |
46 | dist_usrbin_exec_SCRIPTS = | |
37b88bfc | 47 | systemdsystemunit_DATA = |
ac6a37c8 | 48 | dist_bashcompletion_DATA = |
922e6775 | 49 | check_PROGRAMS = |
15b2606c | 50 | dist_check_SCRIPTS = |
8365ed42 | 51 | |
d4baf92e KZ |
52 | PATHFILES = |
53 | ||
f77a4d10 KZ |
54 | INSTALL_EXEC_HOOKS = |
55 | UNINSTALL_HOOKS = | |
56 | INSTALL_DATA_HOOKS = | |
ac73480a | 57 | CLEAN_LOCALS = |
1b03e2cd | 58 | CHECK_LOCALS = |
f77a4d10 | 59 | |
4cf02b65 | 60 | EXTRA_DIST = |
3632ce21 KZ |
61 | CLEANFILES = |
62 | ||
fb55280a | 63 | SUBDIRS = po |
44e293d6 | 64 | |
8b416ca0 | 65 | RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \ |
44e293d6 KZ |
66 | -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o |
67 | ||
48d7b13a KZ |
68 | ACLOCAL_AMFLAGS = -I m4 |
69 | ||
3632ce21 | 70 | EXTRA_DIST += \ |
f06b4328 SK |
71 | .version \ |
72 | autogen.sh \ | |
73 | Documentation \ | |
74 | po/update-potfiles \ | |
b53f8b8e PU |
75 | README.licensing \ |
76 | tools/git-version-gen | |
b8d1314d | 77 | |
8365ed42 KZ |
78 | |
79 | include include/Makemodule.am | |
e0ef609e | 80 | include lib/Makemodule.am |
3632ce21 | 81 | include libuuid/Makemodule.am |
f77a4d10 | 82 | include libblkid/Makemodule.am |
bc94024d | 83 | include libmount/Makemodule.am |
1a4d989e | 84 | include libsmartcols/Makemodule.am |
baa3b270 | 85 | include libfdisk/Makemodule.am |
bc94024d KZ |
86 | |
87 | include schedutils/Makemodule.am | |
22d2322e KZ |
88 | include text-utils/Makemodule.am |
89 | include term-utils/Makemodule.am | |
ffeb2805 | 90 | include login-utils/Makemodule.am |
8772f8d7 | 91 | include sys-utils/Makemodule.am |
37b88bfc | 92 | include misc-utils/Makemodule.am |
54dbc8cf | 93 | include disk-utils/Makemodule.am |
8365ed42 | 94 | |
20da5808 | 95 | include bash-completion/Makemodule.am |
9cc36e9f | 96 | |
ac73480a KZ |
97 | include tests/Makemodule.am |
98 | ||
d4baf92e KZ |
99 | # |
100 | # Don't rely on configure.ac AC_CONFIG_FILES for install paths. | |
101 | # | |
102 | # The paths should be expanded at make time rather than configure: | |
103 | # - to support 'make install prefix=/foo DESTDIR=/foo' | |
104 | # - to recursively expands the paths (e.g. AC_CONFIG_FILES expands | |
105 | # '@usrsbin_execdir@' to ${exec_prefix}/sbin') | |
106 | # | |
107 | edit_cmd = sed \ | |
108 | -e 's|@prefix[@]|$(prefix)|g' \ | |
109 | -e 's|@exec_prefix[@]|$(exec_prefix)|g' \ | |
110 | -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ | |
111 | -e 's|@datadir[@]|$(datadir)|g' \ | |
112 | -e 's|@sbindir[@]|$(sbindir)|g' \ | |
113 | -e 's|@bindir[@]|$(bindir)|g' \ | |
114 | -e 's|@includedir[@]|$(includedir)|g' \ | |
115 | -e 's|@localstatedir[@]|$(localstatedir)|g' \ | |
116 | -e 's|@usrlib_execdir[@]|$(usrlib_execdir)|g' \ | |
117 | -e 's|@usrbin_execdir[@]|$(usrbin_execdir)|g' \ | |
118 | -e 's|@usrsbin_execdir[@]|$(usrsbin_execdir)|g' \ | |
119 | -e 's|@VERSION[@]|$(VERSION)|g' \ | |
2ad21963 | 120 | -e 's|@ADJTIME_PATH[@]|$(ADJTIME_PATH)|g' \ |
d4baf92e KZ |
121 | -e 's|@LIBUUID_VERSION[@]|$(LIBUUID_VERSION)|g' \ |
122 | -e 's|@LIBMOUNT_VERSION[@]|$(LIBMOUNT_VERSION)|g' \ | |
10e1d2e5 SH |
123 | -e 's|@LIBMOUNT_MAJOR_VERSION[@]|$(LIBMOUNT_MAJOR_VERSION)|g' \ |
124 | -e 's|@LIBMOUNT_MINOR_VERSION[@]|$(LIBMOUNT_MINOR_VERSION)|g' \ | |
125 | -e 's|@LIBMOUNT_PATCH_VERSION[@]|$(LIBMOUNT_PATCH_VERSION)|g' \ | |
14697360 | 126 | -e 's|@LIBSMARTCOLS_VERSION[@]|$(LIBSMARTCOLS_VERSION)|g' \ |
ed79557e KZ |
127 | -e 's|@LIBFDISK_PC_REQUIRES[@]|$(LIBFDISK_PC_REQUIRES)|g' \ |
128 | -e 's|@LIBFDISK_VERSION[@]|$(LIBFDISK_VERSION)|g' \ | |
791da22d KZ |
129 | -e 's|@LIBFDISK_MAJOR_VERSION[@]|$(LIBFDISK_MAJOR_VERSION)|g' \ |
130 | -e 's|@LIBFDISK_MINOR_VERSION[@]|$(LIBFDISK_MINOR_VERSION)|g' \ | |
131 | -e 's|@LIBFDISK_PATCH_VERSION[@]|$(LIBFDISK_PATCH_VERSION)|g' \ | |
d4baf92e KZ |
132 | -e 's|@LIBBLKID_VERSION[@]|$(LIBBLKID_VERSION)|g' |
133 | ||
134 | CLEANFILES += $(PATHFILES) | |
135 | EXTRA_DIST += $(PATHFILES:=.in) | |
136 | ||
137 | $(PATHFILES): Makefile | |
138 | @ rm -f $@ $@.tmp | |
cb52ac98 | 139 | $(AM_V_at) test -d $(dir $@) || mkdir -p $(dir $@) |
d4baf92e KZ |
140 | $(AM_V_GEN) srcdir=''; \ |
141 | test -f ./$@.in || srcdir=$(srcdir)/; \ | |
142 | $(edit_cmd) $${srcdir}$@.in >$@.tmp | |
143 | @ mv $@.tmp $@ | |
144 | ||
38c75b59 SK |
145 | # Arrange so that .tarball-version appears only in the distribution |
146 | # tarball, and never in a checked-out repository. | |
147 | dist-hook: | |
148 | echo $(VERSION) > $(distdir)/.tarball-version | |
2b85ab88 SK |
149 | # Set ChangeLog tag reference. |
150 | sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog | |
baf39af1 KZ |
151 | |
152 | distclean-local: | |
0b9f737e | 153 | -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f |
baf39af1 | 154 | rm -rf autom4te.cache |
8eeb575c | 155 | |
44e293d6 KZ |
156 | |
157 | checkincludes: | |
043102bf | 158 | @find * $(RCS_FIND_IGNORE) \ |
44e293d6 KZ |
159 | -name '*.[hcS]' -type f -print | sort -u \ |
160 | | xargs $(top_srcdir)/tools/checkincludes.pl | |
161 | ||
043102bf KZ |
162 | checkconfig: |
163 | @find * $(RCS_FIND_IGNORE) \ | |
164 | -name '*.[hcS]' -type f -print | sort -u \ | |
165 | | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir) | |
166 | ||
ea6c96fb SK |
167 | checkmans: |
168 | @$(top_srcdir)/tools/checkmans.sh | |
169 | ||
d05a3e97 KZ |
170 | checkxalloc: |
171 | @ $(top_srcdir)/tools/checkxalloc.sh | |
44e293d6 | 172 | |
b5c6f486 KZ |
173 | checkdecl: |
174 | @ $(top_srcdir)/tools/checkdecl.sh | |
175 | ||
f339d2a5 RM |
176 | DISTCHECK_CONFIGURE_FLAGS = \ |
177 | --disable-use-tty-group \ | |
178 | --disable-silent-rules \ | |
179 | --enable-all-programs \ | |
f63faced | 180 | --enable-static-programs \ |
f339d2a5 RM |
181 | --enable-gtk-doc \ |
182 | --with-python \ | |
183 | --with-bashcompletiondir=$$dc_install_base/$(bashcompletiondir) \ | |
184 | --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) | |
38c75b59 SK |
185 | |
186 | BUILT_SOURCES = .version | |
187 | .version: | |
188 | echo $(VERSION) > $@-t && mv $@-t $@ | |
189 | ||
47fb1079 | 190 | CHANGELOG_FILE = v$(VERSION)-ChangeLog |
748c010f KZ |
191 | |
192 | $(CHANGELOG_FILE): | |
193 | @ if test "x$$PREVIOUS_VERSION" == "x"; then \ | |
47fb1079 KZ |
194 | echo "Usage make changelog PREVIOUS_VERSION=<version>"; \ |
195 | exit 1; \ | |
196 | fi | |
197 | @ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE) | |
198 | @ echo "--------------------------------------------" >> $(CHANGELOG_FILE) | |
199 | @ echo >> $(CHANGELOG_FILE) | |
200 | $(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE) | |
fb55280a KZ |
201 | # |
202 | # | |
203 | # smatch scan -- smatch and cgcc are expected in $PATH | |
204 | # | |
205 | checksmatch: | |
206 | $(MAKE) CHECK="smatch --data=$(abs_top_srcdir)/tools/smatch-data" CC=cgcc | |
47fb1079 | 207 | |
748c010f KZ |
208 | changelog: $(CHANGELOG_FILE) |
209 | ||
f77a4d10 KZ |
210 | install-exec-hook: $(INSTALL_EXEC_HOOKS) |
211 | ||
212 | uninstall-hook: $(UNINSTALL_HOOKS) | |
213 | ||
214 | install-data-hook: $(INSTALL_DATA_HOOKS) | |
748c010f | 215 | |
ac73480a | 216 | clean-local: $(CLEAN_LOCALS) |
1b03e2cd KZ |
217 | |
218 | check-local: $(CHECK_LOCALS) |