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