summaryrefslogtreecommitdiff
path: root/usr.bin/cpp/Makefile
blob: 36426247def1a17d479e67b98b9685d37adeacc3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#	$OpenBSD: Makefile,v 1.3 1996/06/26 05:32:24 deraadt Exp $

NOMAN=

beforeinstall:
	install ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
		${.CURDIR}/cpp.sh ${DESTDIR}${BINDIR}/cpp
	if [ `cc -print-libgcc-file-name` != /usr/lib/libgcc.a ]; then \
		(cd ${DESTDIR}/usr/libexec; rm -f cpp; \
		ln -s `cc -print-libgcc-file-name | sed -e 's/libgcc\.a/cpp/'` cpp); \
	fi

.include <bsd.prog.mk>