]>
Commit | Line | Data |
---|---|---|
6dbe3af9 KZ |
1 | # Makefile -- Makefile for util-linux Linux utilities |
2 | # Created: Sat Dec 26 20:09:40 1992 | |
726f69e2 | 3 | # Revised: Fri Oct 6 21:37:30 1995 by r.faith@ieee.org |
6dbe3af9 | 4 | # Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu) |
726f69e2 | 5 | # May be distributed under the terms of the GNU GPL. |
6dbe3af9 KZ |
6 | # |
7 | ||
7eda085c | 8 | include ./make_include |
726f69e2 | 9 | include ./MCONFIG |
6dbe3af9 | 10 | |
7eda085c KZ |
11 | SUBDIRS=po \ |
12 | lib \ | |
66ee8158 | 13 | getopt-1.1.0a \ |
6dbe3af9 KZ |
14 | disk-utils \ |
15 | games \ | |
16 | login-utils \ | |
6dbe3af9 | 17 | misc-utils \ |
5c36a0eb KZ |
18 | mount \ |
19 | fdisk \ | |
66ee8158 | 20 | hwclock \ |
6dbe3af9 | 21 | sys-utils \ |
7eda085c KZ |
22 | text-utils \ |
23 | kbd | |
6dbe3af9 | 24 | |
eb63b9b8 | 25 | .PHONEY: all install clean now |
7eda085c | 26 | all: defines.h |
6dbe3af9 KZ |
27 | @for subdir in $(SUBDIRS); do \ |
28 | (cd $$subdir && $(MAKE) $@) || exit 1; \ | |
29 | done | |
30 | ||
7eda085c KZ |
31 | defines.h make_include: |
32 | ./configure | |
33 | ||
eb63b9b8 KZ |
34 | now: |
35 | touch defines.h | |
36 | ||
37 | $(SUBDIRS): defines.h now | |
38 | cd $@ && $(MAKE) | |
39 | ||
6dbe3af9 KZ |
40 | install: |
41 | @if [ "`whoami`" = "root" ]; then umask 022; fi | |
42 | @for subdir in $(SUBDIRS); do \ | |
43 | (cd $$subdir && $(MAKE) $@) || exit 1; \ | |
44 | done | |
45 | ||
46 | clean: | |
7eda085c | 47 | -rm -f *.o *~ omake conftest conftest.c core |
fd6b7a7f | 48 | @for subdir in $(SUBDIRS); do \ |
6dbe3af9 KZ |
49 | (cd $$subdir && $(MAKE) $@) || exit 1; \ |
50 | done | |
51 | ||
7eda085c KZ |
52 | distclean: make_include clean |
53 | cd po && make distclean | |
22853e4a | 54 | cd mount && make distclean |
7eda085c KZ |
55 | -rm -f defines.h make_include |
56 | ||
eb63b9b8 KZ |
57 | # |
58 | # dist: | |
59 | # (cd /tmp; \ | |
60 | # rm -rf /tmp/util-linux-$(VERSION); \ | |
61 | # cvs export -fNd util-linux-$(VERSION) -r HEAD util-linux; \ | |
62 | # cd util-linux-$(VERSION); \ | |
63 | # find -type d | xargs chmod 755; \ | |
64 | # find -type f | xargs chmod 644; \ | |
65 | # find -type d | xargs chown root:root; \ | |
66 | # find -type f | xargs chown root:root; \ | |
67 | # cd ..; \ | |
68 | # GZIP=-9 tar cvvzf util-linux-$(VERSION).tar.gz util-linux-$(VERSION); \ | |
69 | # cp -p util-linux-$(VERSION)/LSM util-linux-$(VERSION).lsm; \ | |
70 | # cp -p util-linux-$(VERSION)/ANNOUNCE util-linux-$(VERSION).Announce; \ | |
71 | # echo Done.) | |
72 | # | |
73 |