NetBSD/usr.bin/file/Makefile

30 lines
621 B
Makefile
Raw Normal View History

# $Id: Makefile,v 1.5 1993/11/03 05:56:58 cgd Exp $
MAGIC= /etc/magic
MAGICOWN= bin
MAGICGRP= bin
MAGICMODE= 444
1993-03-21 12:45:37 +03:00
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
1993-03-21 12:45:37 +03:00
CLEANFILES+= magic
all: file magic
MAGFILES= $(.CURDIR)/magdir/Header\
$(.CURDIR)/magdir/Localstuff\
$(.CURDIR)/magdir/NetBSD\
$(.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 \
$(DESTDIR)$(MAGIC)
1993-03-21 12:45:37 +03:00
.include <bsd.prog.mk>