blob: 1cc96a6de69bc8bdbd366a12013a49a9de6ab32e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# $OpenBSD: Makefile,v 1.10 2004/05/19 02:32:35 tedu Exp $
MAGIC= /etc/magic
MAGICOWN= root
MAGICGRP= bin
MAGICMODE= 444
PROG= file
SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c is_tar.c \
print.c compress.c readelf.c magic.c funcs.c
CFLAGS+= -DMAGIC='"$(MAGIC)"' -DUSE_UTIMES -DHAVE_CONFIG_H
MAN= file.1 magic.5
CLEANFILES+= magic
all: file magic
MAGFILES= $(.CURDIR)/magdir/Header\
$(.CURDIR)/magdir/Localstuff\
$(.CURDIR)/magdir/OpenBSD\
$(.CURDIR)/magdir/[0-9a-z]*
magic: $(MAGFILES)
cat $(MAGFILES) > $(.TARGET)
afterinstall:
${INSTALL} ${INSTALL_COPY} -o $(MAGICOWN) -g $(MAGICGRP) -m $(MAGICMODE) magic \
$(DESTDIR)$(MAGIC)
.include <bsd.prog.mk>
|