]>
Commit | Line | Data |
---|---|---|
48d7b13a KZ |
1 | include $(top_srcdir)/config/include-Makefile.am |
2 | ||
ebc83db1 DEFP |
3 | SHLIBS_DIRS = |
4 | ||
5 | if BUILD_LIBUUID | |
83d20837 | 6 | SHLIBS_DIRS += libuuid |
ebc83db1 DEFP |
7 | endif |
8 | ||
9 | if BUILD_LIBBLKID | |
8fb4efae | 10 | SHLIBS_DIRS += libblkid |
ebc83db1 DEFP |
11 | endif |
12 | ||
13 | if BUILD_LIBMOUNT | |
2aefc0a8 | 14 | SHLIBS_DIRS += libmount |
ebc83db1 DEFP |
15 | endif |
16 | ||
f331598a KZ |
17 | MAN_DIRS = man/ru |
18 | ||
2984313a | 19 | SUBDIRS = \ |
8eeb575c | 20 | include \ |
48d7b13a KZ |
21 | disk-utils \ |
22 | fdisk \ | |
23 | getopt \ | |
d00ed891 | 24 | lib \ |
ebc83db1 | 25 | $(SHLIBS_DIRS) \ |
f331598a | 26 | $(MAN_DIRS) \ |
48d7b13a KZ |
27 | login-utils \ |
28 | misc-utils \ | |
48d7b13a | 29 | po \ |
48d7b13a | 30 | sys-utils \ |
c0f20acb | 31 | term-utils \ |
e83446da KZ |
32 | text-utils \ |
33 | tests | |
48d7b13a | 34 | |
44e293d6 | 35 | |
8b416ca0 | 36 | RCS_FIND_IGNORE = \( -name SCCS -o -name BitKeeper -o -name .svn -o \ |
44e293d6 KZ |
37 | -name CVS -o -name .pc -o -name .hg -o -name .git \) -prune -o |
38 | ||
465e9973 ST |
39 | if BUILD_HWCLOCK |
40 | SUBDIRS += hwclock | |
41 | endif | |
42 | ||
b98ae9c2 | 43 | if BUILD_PARTX |
465e9973 | 44 | SUBDIRS += partx |
3bbc9320 ST |
45 | endif |
46 | ||
7177d32e ABL |
47 | if BUILD_MOUNT |
48 | SUBDIRS += mount | |
49 | endif | |
50 | ||
607c2a72 KZ |
51 | if BUILD_FSCK |
52 | SUBDIRS += fsck | |
53 | endif | |
54 | ||
58a111bd KZ |
55 | if BUILD_SCHEDUTILS |
56 | SUBDIRS += schedutils | |
57 | endif | |
58 | ||
2b85ab88 | 59 | AUTOMAKE_OPTIONS = gnu |
48d7b13a KZ |
60 | ACLOCAL_AMFLAGS = -I m4 |
61 | ||
1b38f7cc | 62 | EXTRA_DIST = \ |
38c75b59 | 63 | .version \ |
562218e6 | 64 | autogen.sh \ |
dcb219b3 | 65 | README.licensing \ |
71be1ee4 | 66 | po/update-potfiles \ |
4cc5a3e2 | 67 | tools \ |
f98d4f76 | 68 | Documentation |
b8d1314d | 69 | |
38c75b59 SK |
70 | # Arrange so that .tarball-version appears only in the distribution |
71 | # tarball, and never in a checked-out repository. | |
72 | dist-hook: | |
73 | echo $(VERSION) > $(distdir)/.tarball-version | |
2b85ab88 SK |
74 | # Set ChangeLog tag reference. |
75 | sed -i "s/log/log;h=$(VERSION)/" $(distdir)/ChangeLog | |
baf39af1 KZ |
76 | |
77 | distclean-local: | |
0b9f737e | 78 | -find . -name \*~ -o -name \*.orig -o -name \*.rej | xargs rm -f |
baf39af1 | 79 | rm -rf autom4te.cache |
8eeb575c | 80 | |
44e293d6 KZ |
81 | |
82 | checkincludes: | |
043102bf | 83 | @find * $(RCS_FIND_IGNORE) \ |
44e293d6 KZ |
84 | -name '*.[hcS]' -type f -print | sort -u \ |
85 | | xargs $(top_srcdir)/tools/checkincludes.pl | |
86 | ||
043102bf KZ |
87 | checkconfig: |
88 | @find * $(RCS_FIND_IGNORE) \ | |
89 | -name '*.[hcS]' -type f -print | sort -u \ | |
90 | | xargs $(top_srcdir)/tools/checkconfig.sh $(top_srcdir) | |
91 | ||
d05a3e97 KZ |
92 | checkxalloc: |
93 | @ $(top_srcdir)/tools/checkxalloc.sh | |
44e293d6 | 94 | |
0bf2dd3a | 95 | ENABLE_ALL = --enable-static-programs --enable-most-builds |
1e018c15 | 96 | DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --disable-use-tty-group $(ENABLE_ALL) |
38c75b59 SK |
97 | |
98 | ||
99 | BUILT_SOURCES = .version | |
100 | .version: | |
101 | echo $(VERSION) > $@-t && mv $@-t $@ | |
102 | ||
47fb1079 | 103 | CHANGELOG_FILE = v$(VERSION)-ChangeLog |
748c010f KZ |
104 | |
105 | $(CHANGELOG_FILE): | |
106 | @ if test "x$$PREVIOUS_VERSION" == "x"; then \ | |
47fb1079 KZ |
107 | echo "Usage make changelog PREVIOUS_VERSION=<version>"; \ |
108 | exit 1; \ | |
109 | fi | |
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) | |
114 | ||
748c010f KZ |
115 | changelog: $(CHANGELOG_FILE) |
116 | ||
117 |