]> git.ipfire.org Git - thirdparty/util-linux.git/blame - disk-utils/Makefile
Imported from util-linux-2.10s 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
28# raw.c does not compile on 2.2.*.
29# find out later where it does and add tests to config
30ifeq "$(ADD_RAW)" "yes"
31USRBIN:=$(USRBIN) raw
32MAN8:=$(MAN8) raw.8
33endif
6dbe3af9 34
2b6fc908 35all: $(SBIN) $(USRBIN)
6dbe3af9 36
22853e4a 37fsck.minix.o mkfs.minix.o: bitops.h minix.h
6dbe3af9
KZ
38
39install: all
726f69e2 40 $(INSTALLDIR) $(SBINDIR) $(USRBINDIR) $(ETCDIR)
6dbe3af9 41 $(INSTALLBIN) $(SBIN) $(SBINDIR)
6dbe3af9 42 $(INSTALLBIN) $(USRBIN) $(USRBINDIR)
eb63b9b8 43ifneq "$(HAVE_FDUTILS)" "yes"
6dbe3af9 44 $(INSTALLDAT) $(ETC) $(ETCDIR)
eb63b9b8 45endif
6dbe3af9
KZ
46 $(INSTALLDIR) $(MAN8DIR)
47 $(INSTALLMAN) $(MAN8) $(MAN8DIR)
48
49.PHONY: clean
50clean:
66ee8158 51 -rm -f *.o *~ core $(SBIN) $(USRBIN) raw