]>
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 | ||
20 | # Paths to in-tree libraries (use ul_ prefix to avoid possible collisions) | |
21 | # Note that blkid.h and libmount.h are generated and stored in build dirs. | |
22 | # | |
23 | ul_libblkid_incdir = $(top_builddir)/libblkid/src | |
24 | ul_libmount_incdir = $(top_builddir)/libmount/src | |
25 | ul_libuuid_incdir = $(top_srcdir)/libuuid/src | |
48d7b13a | 26 | |
3632ce21 KZ |
27 | pkgconfigdir = $(usrlib_execdir)/pkgconfig |
28 | ||
8365ed42 | 29 | dist_noinst_HEADERS = |
e0ef609e | 30 | noinst_PROGRAMS = |
f77a4d10 | 31 | noinst_LTLIBRARIES = |
5ed5df5d | 32 | usrbin_exec_PROGRAMS = |
ffeb2805 | 33 | usrsbin_exec_PROGRAMS = |
5ed5df5d | 34 | dist_man_MANS = |
3632ce21 KZ |
35 | man_MANS = |
36 | pkgconfig_DATA = | |
37 | usrlib_exec_LTLIBRARIES = | |
22d2322e KZ |
38 | bin_PROGRAMS = |
39 | sbin_PROGRAMS = | |
40 | dist_usrbin_exec_SCRIPTS = | |
37b88bfc | 41 | systemdsystemunit_DATA = |
fb55280a | 42 | ruman1_DATA = |
8365ed42 | 43 | |
f77a4d10 KZ |
44 | INSTALL_EXEC_HOOKS = |
45 | UNINSTALL_HOOKS = | |
46 | INSTALL_DATA_HOOKS = | |
ac73480a | 47 | CLEAN_LOCALS = |
f77a4d10 | 48 | |
2cd5bc5a | 49 | EXTRA_DIST = man/ru/ddate.1 |
3632ce21 KZ |
50 | CLEANFILES = |
51 | ||
fb55280a | 52 | SUBDIRS = po |
44e293d6 | 53 | |
8b416ca0 | 54 | RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \ |
44e293d6 KZ |
55 | -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o |
56 | ||
48d7b13a KZ |
57 | ACLOCAL_AMFLAGS = -I m4 |
58 | ||
3632ce21 | 59 | EXTRA_DIST += \ |
f06b4328 SK |
60 | .version \ |
61 | autogen.sh \ | |
62 | Documentation \ | |
63 | po/update-potfiles \ | |
b53f8b8e PU |
64 | README.licensing \ |
65 | tools/git-version-gen | |
b8d1314d | 66 | |
8365ed42 KZ |
67 | |
68 | include include/Makemodule.am | |
e0ef609e | 69 | include lib/Makemodule.am |
3632ce21 | 70 | include libuuid/Makemodule.am |
f77a4d10 | 71 | include libblkid/Makemodule.am |
bc94024d KZ |
72 | include libmount/Makemodule.am |
73 | ||
74 | include schedutils/Makemodule.am | |
22d2322e KZ |
75 | include text-utils/Makemodule.am |
76 | include term-utils/Makemodule.am | |
ffeb2805 | 77 | include login-utils/Makemodule.am |
d2feb47f | 78 | include mount-deprecated/Makemodule.am |
8772f8d7 | 79 | include sys-utils/Makemodule.am |
37b88bfc | 80 | include misc-utils/Makemodule.am |
54dbc8cf | 81 | include disk-utils/Makemodule.am |
50ea6795 | 82 | include fdisks/Makemodule.am |
8365ed42 | 83 | |
ac73480a KZ |
84 | include tests/Makemodule.am |
85 | ||
38c75b59 SK |
86 | # Arrange so that .tarball-version appears only in the distribution |
87 | # tarball, and never in a checked-out repository. | |
88 | dist-hook: | |
89 | echo $(VERSION) > $(distdir)/.tarball-version | |
2b85ab88 SK |
90 | # Set ChangeLog tag reference. |
91 | sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog | |
baf39af1 KZ |
92 | |
93 | distclean-local: | |
0b9f737e | 94 | -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f |
baf39af1 | 95 | rm -rf autom4te.cache |
8eeb575c | 96 | |
44e293d6 KZ |
97 | |
98 | checkincludes: | |
043102bf | 99 | @find * $(RCS_FIND_IGNORE) \ |
44e293d6 KZ |
100 | -name '*.[hcS]' -type f -print | sort -u \ |
101 | | xargs $(top_srcdir)/tools/checkincludes.pl | |
102 | ||
043102bf KZ |
103 | checkconfig: |
104 | @find * $(RCS_FIND_IGNORE) \ | |
105 | -name '*.[hcS]' -type f -print | sort -u \ | |
106 | | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir) | |
107 | ||
ea6c96fb SK |
108 | checkmans: |
109 | @$(top_srcdir)/tools/checkmans.sh | |
110 | ||
d05a3e97 KZ |
111 | checkxalloc: |
112 | @ $(top_srcdir)/tools/checkxalloc.sh | |
44e293d6 | 113 | |
b5c6f486 KZ |
114 | checkdecl: |
115 | @ $(top_srcdir)/tools/checkdecl.sh | |
116 | ||
0bf2dd3a | 117 | ENABLE_ALL = --enable-static-programs --enable-most-builds |
a2defd02 | 118 | DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group \ |
1b68c379 PU |
119 | --disable-silent-rules $(ENABLE_ALL) \ |
120 | --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) | |
38c75b59 SK |
121 | |
122 | ||
123 | BUILT_SOURCES = .version | |
124 | .version: | |
125 | echo $(VERSION) > $@-t && mv $@-t $@ | |
126 | ||
47fb1079 | 127 | CHANGELOG_FILE = v$(VERSION)-ChangeLog |
748c010f KZ |
128 | |
129 | $(CHANGELOG_FILE): | |
130 | @ if test "x$$PREVIOUS_VERSION" == "x"; then \ | |
47fb1079 KZ |
131 | echo "Usage make changelog PREVIOUS_VERSION=<version>"; \ |
132 | exit 1; \ | |
133 | fi | |
134 | @ echo "Changes between v$(PREVIOUS_VERSION) and v$(VERSION)" > $(CHANGELOG_FILE) | |
135 | @ echo "--------------------------------------------" >> $(CHANGELOG_FILE) | |
136 | @ echo >> $(CHANGELOG_FILE) | |
137 | $(AM_V_GEN) git log --stat v$(PREVIOUS_VERSION)..HEAD >> $(CHANGELOG_FILE) | |
fb55280a KZ |
138 | # |
139 | # | |
140 | # smatch scan -- smatch and cgcc are expected in $PATH | |
141 | # | |
142 | checksmatch: | |
143 | $(MAKE) CHECK="smatch --data=$(abs_top_srcdir)/tools/smatch-data" CC=cgcc | |
47fb1079 | 144 | |
748c010f KZ |
145 | changelog: $(CHANGELOG_FILE) |
146 | ||
f77a4d10 KZ |
147 | install-exec-hook: $(INSTALL_EXEC_HOOKS) |
148 | ||
149 | uninstall-hook: $(UNINSTALL_HOOKS) | |
150 | ||
151 | install-data-hook: $(INSTALL_DATA_HOOKS) | |
748c010f | 152 | |
ac73480a | 153 | clean-local: $(CLEAN_LOCALS) |