Use 'includes' instead of 'beforeinstall' target to install headers

This commit is contained in:
jtc 1996-04-29 20:32:24 +00:00
parent a1609dc859
commit 022978656f

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.1 1995/03/06 11:38:04 mycroft Exp $
# $NetBSD: Makefile,v 1.2 1996/04/29 20:32:24 jtc Exp $
LIB= pcap
MAN= pcap.3
@ -13,7 +13,7 @@ SRCS= pcap.c inet.c gencode.c optimize.c nametoaddr.c etherent.c \
CLEANFILES+= grammar.c scanner.c y.tab.h
beforeinstall:
includes:
@cd ${.CURDIR}; for i in $(HDRS); do \
cmp -s $$i ${DESTDIR}/usr/include/$$i || \
{ j="install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \