1994-12-22 15:29:38 +03:00
|
|
|
# $Id: Makefile,v 1.6 1994/12/22 12:29:47 cgd Exp $
|
1993-08-02 21:48:44 +04:00
|
|
|
|
1993-06-10 04:37:55 +04:00
|
|
|
MAGIC= /etc/magic
|
|
|
|
MAGICOWN= bin
|
|
|
|
MAGICGRP= bin
|
|
|
|
MAGICMODE= 444
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-06-10 04:37:55 +04:00
|
|
|
PROG= file
|
|
|
|
SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \
|
|
|
|
print.c compress.c
|
|
|
|
CFLAGS+= -DMAGIC='"$(MAGIC)"'
|
1994-12-22 15:29:38 +03:00
|
|
|
MAN= file.1 magic.5
|
1993-03-21 12:45:37 +03:00
|
|
|
|
1993-06-10 04:37:55 +04:00
|
|
|
CLEANFILES+= magic
|
|
|
|
all: file magic
|
|
|
|
|
|
|
|
MAGFILES= $(.CURDIR)/magdir/Header\
|
|
|
|
$(.CURDIR)/magdir/Localstuff\
|
1993-11-03 08:56:58 +03:00
|
|
|
$(.CURDIR)/magdir/NetBSD\
|
1993-06-10 04:37:55 +04:00
|
|
|
$(.CURDIR)/magdir/[a-z]*
|
|
|
|
magic: $(MAGFILES)
|
|
|
|
cat $(MAGFILES) > $(.TARGET)
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
afterinstall:
|
1993-07-18 23:06:45 +04:00
|
|
|
install ${COPY} -o $(MAGICOWN) -g $(MAGICGRP) -m $(MAGICMODE) magic \
|
1993-06-10 04:37:55 +04:00
|
|
|
$(DESTDIR)$(MAGIC)
|
1993-03-21 12:45:37 +03:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|