home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume38
/
hlgrep
/
part01
/
Makefile
< prev
next >
Wrap
Makefile
|
1993-06-20
|
1KB
|
50 lines
#------------------------------------------------------------------------------
# Makefile for hlgrep
#
# Configuration:
#
# Change BINDIR to the destination directory for the executable.
# Change MANTOP to the top-level manual directory.
# Change MANEXT to the manual section.
#------------------------------------------------------------------------------
BINDIR = /usr/local/bin
MANTOP = /usr/local/man
MANEXT = 1
#------------------------------------------------------------------------------
# Shouldn't need to change anything below here.
#------------------------------------------------------------------------------
HLGREP = hlgrep
MANPAGE = $(HLGREP).man
MAKEFILE = Makefile
README = README
ALLFILES = $(README) $(MAKEFILE) $(HLGREP) $(MANPAGE)
SHARFILE = $(HLGREP).shar
MANDIR = $(MANTOP)/man$(MANEXT)
MANDEST = $(MANDIR)/$(HLGREP).$(MANEXT)
#------------------------------------------------------------------------------
# Targets
#------------------------------------------------------------------------------
all: $(ALLFILES)
install:
install -c -m 755 $(HLGREP) $(BINDIR)
install -c -m 644 $(MANPAGE) $(MANDEST)
shar: $(SHARFILE)
$(SHARFILE): $(ALLFILES)
rm -f $(SHARFILE)
shar $(ALLFILES) > $(SHARFILE)
clean:
rm -f $(SHARFILE)