1
# Generated automatically from Makefile.in by configure.
3
# $Id: Makefile.in,v 1.9 2000/09/05 09:22:35 garloff Exp $
5
## Makefile for scsidev.
7
#### Start of system configuration section. ####
13
INSTALL = /usr/bin/ginstall -c
14
INSTALL_PROGRAM = ${INSTALL}
15
INSTALL_DATA = ${INSTALL} -m 644
19
VERSION = $(shell cat VERSION)
21
prefix = $(DESTDIR)/usr
22
exec_prefix = $(DESTDIR)
24
bindir = $(exec_prefix)/bin
25
docdir = $(prefix)/share/doc/packages
27
# Where to put the manual pages.
28
mandir = $(prefix)/share/man/man8
29
#mandir = $(prefix)/man/man8
30
# Extension (not including `.') for the manual page filenames.
33
#### End of system configuration section. ####
34
CFLAGS=-g -O2 -Wall -DVERSION=\"$(VERSION)\" # -g -DDEBUG
38
scsidev: Makefile scsidev.c config.h
39
${CC} ${CFLAGS} -o scsidev scsidev.c
41
Makefile: Makefile.in config.status
42
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) ./config.status
44
config.status: configure
45
$(SHELL) config.status --recheck
47
configure: configure.in
48
cd $(srcdir) && autoconf
51
install -o root -g root -m 755 -s scsidev $(bindir)
52
install -o root -g root -m 644 scsidev.8 $(mandir)
53
gzip -9f $(mandir)/scsidev.8
54
if [ ! -d $(DESTDIR)/dev/scsi ]; then mkdir $(DESTDIR)/dev/scsi; fi
55
#install -d $(docdir)/scsidev
56
#install COPYING boot.diff README scsi.alias $(docdir)/scsidev/
60
(cd .. && mv scsidev scsidev-$(VERSION) && tar cvvf - \
61
--exclude scsidev-$(VERSION)/CVS scsidev-$(VERSION) \
62
| gzip -9 > scsidev-$(VERSION).tar.gz; mv scsidev-$(VERSION) scsidev)
65
rm -f *~ .*~ *.o scsidev
66
/bin/rm -f config.status config.log config.cache config.h