]> git.ipfire.org Git - thirdparty/util-linux.git/blob - disk-utils/Makefile
Imported from util-linux-2.10s tarball.
[thirdparty/util-linux.git] / disk-utils / Makefile
1 # Makefile -- Makefile for util-linux Linux utilities
2 # Created: Sat Dec 26 20:09:40 1992
3 # Copyright 1992, 1993, 1994, 1995 Rickard E. Faith (faith@cs.unc.edu)
4
5
6 include ../make_include
7 include ../MCONFIG
8
9 # Where to put man pages?
10
11 MAN8= blockdev.8 fdformat.8 isosize.8 mkfs.8 mkswap.8 elvtune.8 \
12 fsck.minix.8 mkfs.minix.8 mkfs.bfs.8
13
14 # Where to put binaries?
15 # See the "install" rule for the links. . .
16
17 SBIN= mkfs mkswap blockdev elvtune fsck.minix mkfs.minix mkfs.bfs
18
19 USRBIN= fdformat isosize
20
21 ETC= fdprm
22
23 ifneq "$(HAVE_FDUTILS)" "yes"
24 USRBIN:=$(USRBIN) setfdprm
25 MAN8:=$(MAN8) setfdprm.8
26 endif
27
28 # raw.c does not compile on 2.2.*.
29 # find out later where it does and add tests to config
30 ifeq "$(ADD_RAW)" "yes"
31 USRBIN:=$(USRBIN) raw
32 MAN8:=$(MAN8) raw.8
33 endif
34
35 all: $(SBIN) $(USRBIN)
36
37 fsck.minix.o mkfs.minix.o: bitops.h minix.h
38
39 install: all
40 $(INSTALLDIR) $(SBINDIR) $(USRBINDIR) $(ETCDIR)
41 $(INSTALLBIN) $(SBIN) $(SBINDIR)
42 $(INSTALLBIN) $(USRBIN) $(USRBINDIR)
43 ifneq "$(HAVE_FDUTILS)" "yes"
44 $(INSTALLDAT) $(ETC) $(ETCDIR)
45 endif
46 $(INSTALLDIR) $(MAN8DIR)
47 $(INSTALLMAN) $(MAN8) $(MAN8DIR)
48
49 .PHONY: clean
50 clean:
51 -rm -f *.o *~ core $(SBIN) $(USRBIN) raw