diff options
| author | Bryan Drewery <bdrewery@FreeBSD.org> | 2015-09-18 21:36:29 +0000 |
|---|---|---|
| committer | Bryan Drewery <bdrewery@FreeBSD.org> | 2015-09-18 21:36:29 +0000 |
| commit | df884b5ca78b7b75062c08dd3c5a718682fa5c86 (patch) | |
| tree | dd3fa2e4e4d2b83492a01f906e3a9bd5ceebfd16 /include/Makefile | |
| parent | 144cd65bcac41bc3d623874eb86cde232fb9707f (diff) | |
Notes
Diffstat (limited to 'include/Makefile')
| -rw-r--r-- | include/Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/Makefile b/include/Makefile index 5d585a14319b..3c3f9937c02e 100644 --- a/include/Makefile +++ b/include/Makefile @@ -172,12 +172,12 @@ compat: copies: .for i in ${LDIRS} ${LSUBDIRS} ${LSUBSUBDIRS} crypto machine machine/pc \ ${_MARCHS} -.if exists(${DESTDIR}${INCLUDEDIR}/$i) - cd ${DESTDIR}${INCLUDEDIR}/$i; \ - for h in *.h; do \ - if [ -L $$h ]; then rm -f $$h; fi; \ - done -.endif + if [ -d ${DESTDIR}${INCLUDEDIR}/$i ]; then \ + cd ${DESTDIR}${INCLUDEDIR}/$i; \ + for h in *.h; do \ + if [ -L $$h ]; then rm -f $$h; fi; \ + done; \ + fi .endfor .for i in ${LDIRS} ${LSUBDIRS:Ndev/agp:Ndev/acpica:Ndev/bktr:Ndev/nand:Ndev/pci} ${LSUBSUBDIRS} cd ${.CURDIR}/../sys; \ |
