]> git.ipfire.org Git - thirdparty/util-linux.git/blob - Makefile
Imported from util-linux-2.11b 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.0a \
14 disk-utils \
15 games \
16 login-utils \
17 misc-utils \
18 mount \
19 fdisk \
20 hwclock \
21 sys-utils \
22 text-utils
23
24 .PHONEY: all install clean now
25 all: defines.h
26 @for subdir in $(SUBDIRS); do \
27 (cd $$subdir && $(MAKE) $@) || exit 1; \
28 done
29
30 defines.h make_include:
31 ./configure
32
33 now:
34 touch defines.h
35
36 $(SUBDIRS): defines.h now
37 cd $@ && $(MAKE)
38
39 install:
40 @if [ "`whoami`" = "root" ]; then umask 022; fi
41 @for subdir in $(SUBDIRS); do \
42 (cd $$subdir && $(MAKE) $@) || exit 1; \
43 done
44
45 clean:
46 -rm -f *.o *~ omake conftest conftest.c core
47 @for subdir in $(SUBDIRS); do \
48 (cd $$subdir && $(MAKE) $@) || exit 1; \
49 done
50
51 distclean: make_include clean
52 cd po && make distclean
53 cd mount && make distclean
54 -rm -f defines.h make_include
55
56 #
57 # dist:
58 # (cd /tmp; \
59 # rm -rf /tmp/util-linux-$(VERSION); \
60 # cvs export -fNd util-linux-$(VERSION) -r HEAD util-linux; \
61 # cd util-linux-$(VERSION); \
62 # find -type d | xargs chmod 755; \
63 # find -type f | xargs chmod 644; \
64 # find -type d | xargs chown root:root; \
65 # find -type f | xargs chown root:root; \
66 # cd ..; \
67 # GZIP=-9 tar cvvzf util-linux-$(VERSION).tar.gz util-linux-$(VERSION); \
68 # cp -p util-linux-$(VERSION)/LSM util-linux-$(VERSION).lsm; \
69 # cp -p util-linux-$(VERSION)/ANNOUNCE util-linux-$(VERSION).Announce; \
70 # echo Done.)
71 #
72