diff options
| author | David E. O'Brien <obrien@FreeBSD.org> | 2001-07-30 03:50:04 +0000 |
|---|---|---|
| committer | David E. O'Brien <obrien@FreeBSD.org> | 2001-07-30 03:50:04 +0000 |
| commit | 56e3dc4288ebd24bf9238a3b16e3298ea5a440e8 (patch) | |
| tree | 62195b6e5a015e2bef6c8e93c248ccf751d1dc02 /usr.bin/file | |
| parent | 969925b21652c450a1eeac4cc56071e0745b0174 (diff) | |
Notes
Diffstat (limited to 'usr.bin/file')
| -rw-r--r-- | usr.bin/file/Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/file/Makefile b/usr.bin/file/Makefile index e9c186aa3da6e..b7d212e7d7221 100644 --- a/usr.bin/file/Makefile +++ b/usr.bin/file/Makefile @@ -31,11 +31,11 @@ SRCDIR= ${.CURDIR}/../../contrib/file .PATH: ${SRCDIR} CFLAGS+= -DMAGIC='"$(MAGICFILE)"' -DBUILTIN_ELF -DELFCORE -DHAVE_CONFIG_H -CFLAGS+= -I${.CURDIR} +CFLAGS+= -I${.CURDIR} -I${SRCDIR} PROG= file SRCS= file.c apprentice.c fsmagic.c softmagic.c ascmagic.c \ - compress.c is_tar.c readelf.c print.c + compress.c is_tar.c readelf.c print-hacked.c # compress.c is_tar.c readelf.c internat.c print.c MAN= file.1 magic.5 @@ -51,6 +51,10 @@ all: file magic magic: $(MAGFILES) cat $(MAGFILES) > $(.TARGET) +CLEANFILES+= print-hacked.c +print-hacked.c: print.c + sed -e 's|daylight|0/*daylight*/|g' ${.ALLSRC} > ${.TARGET} + beforeinstall: $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m $(MAGICMODE) \ magic $(DESTDIR)$(MAGICFILE) |
