diff options
author | phk <phk@FreeBSD.org> | 1994-09-19 05:30:33 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-09-19 05:30:33 +0000 |
commit | 75e736a76f8ac82050a6f4361799c6f4b9822d7b (patch) | |
tree | ed92d3aa92b3857ed8bc29a9c2b663bc1a46a147 /lib | |
parent | f2cba2c3315e167e0a47cbeedcd079cf2023a188 (diff) | |
download | FreeBSD-src-75e736a76f8ac82050a6f4361799c6f4b9822d7b.zip FreeBSD-src-75e736a76f8ac82050a6f4361799c6f4b9822d7b.tar.gz |
Added beforeinstall rule to install .h files. We might need some .mk
support for this kind of thing. Look at src/Makefile target "includes".
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libmd/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile index ee1274c..be53c88 100644 --- a/lib/libmd/Makefile +++ b/lib/libmd/Makefile @@ -82,4 +82,18 @@ test: md2.ref md4.ref md5.ref beforedepend: md2hl.c md4hl.c md5hl.c +beforeinstall: + -cd ${.CURDIR}; cmp -s md2.h ${DESTDIR}/usr/include/md2.h > \ + /dev/null 2>&1 || \ + install -c -o ${BINOWN} -g ${BINGRP} -m 444 md2.h \ + ${DESTDIR}/usr/include + -cd ${.CURDIR}; cmp -s md4.h ${DESTDIR}/usr/include/md4.h > \ + /dev/null 2>&1 || \ + install -c -o ${BINOWN} -g ${BINGRP} -m 444 md4.h \ + ${DESTDIR}/usr/include + -cd ${.CURDIR}; cmp -s md5.h ${DESTDIR}/usr/include/md5.h > \ + /dev/null 2>&1 || \ + install -c -o ${BINOWN} -g ${BINGRP} -m 444 md5.h \ + ${DESTDIR}/usr/include + .include <bsd.lib.mk> |