aee4b07b8a
headers, and a few other insignificant changes.
29 lines
597 B
Makefile
29 lines
597 B
Makefile
# $Id: Makefile,v 1.4 1993/08/02 17:54:24 mycroft Exp $
|
|
|
|
MAGIC= /etc/magic
|
|
MAGICOWN= bin
|
|
MAGICGRP= bin
|
|
MAGICMODE= 444
|
|
|
|
PROG= file
|
|
SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \
|
|
print.c compress.c
|
|
CFLAGS+= -DMAGIC='"$(MAGIC)"'
|
|
MAN1= file.0
|
|
MAN5= magic.0
|
|
|
|
CLEANFILES+= magic
|
|
all: file magic
|
|
|
|
MAGFILES= $(.CURDIR)/magdir/Header\
|
|
$(.CURDIR)/magdir/Localstuff\
|
|
$(.CURDIR)/magdir/[a-z]*
|
|
magic: $(MAGFILES)
|
|
cat $(MAGFILES) > $(.TARGET)
|
|
|
|
afterinstall:
|
|
install ${COPY} -o $(MAGICOWN) -g $(MAGICGRP) -m $(MAGICMODE) magic \
|
|
$(DESTDIR)$(MAGIC)
|
|
|
|
.include <bsd.prog.mk>
|