summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2002-03-06 23:17:40 +0000
committerNeil Brown <neilb@suse.de>2002-03-06 23:17:40 +0000
commitcd29a5c835c11cbcedc10487677eac6a946ad61b (patch)
treed4bb1a92ee76d8680522baace561aaa1ceaaebae /Makefile
parent52826846282e9e224e05dde6d2e4cb38d1fefec7 (diff)
downloadmdadm-cd29a5c835c11cbcedc10487677eac6a946ad61b.tar.gz
mdadm-cd29a5c835c11cbcedc10487677eac6a946ad61b.tar.xz
mdadm-cd29a5c835c11cbcedc10487677eac6a946ad61b.zip
mdctl-0.6mdctl-0.6
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 14 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5d0b142..5513451 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
#
# mdctl - manage Linux "md" devices aka RAID arrays.
#
-# Copyright (C) 2001 Neil Brown <neilb@cse.unsw.edu.au>
+# Copyright (C) 2001-2002 Neil Brown <neilb@cse.unsw.edu.au>
#
#
# This program is free software; you can redistribute it and/or modify
@@ -27,18 +27,29 @@
# Australia
#
+CC = gcc
CFLAGS = -Wall,error,strict-prototypes -ggdb
+INSTALL = /usr/bin/install
+DESTDIR = /sbin
+
OBJS = mdctl.o config.o ReadMe.o util.o Manage.o Assemble.o Build.o Create.o Detail.o Examine.o Monitor.o dlink.o
-all : mdctl
+
+all : mdctl mdctl.man
mdctl : $(OBJS)
$(CC) -o mdctl $^
+mdctl.man : mdctl.8
+ nroff -man mdctl.8 > mdctl.man
+
$(OBJS) : mdctl.h
+install : mdctl
+ $(INSTALL) -m 755 mdctl $(DESTDIR)/sbin
+
clean :
- rm -f mdctl $(OBJS) core
+ rm -f mdctl $(OBJS) core mdctl.man
dist : clean
./makedist