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