summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/mk/bsd.progs.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.progs.mk b/share/mk/bsd.progs.mk
index ad5cc18..34dae62 100644
--- a/share/mk/bsd.progs.mk
+++ b/share/mk/bsd.progs.mk
@@ -102,7 +102,10 @@ _PROGS_ALL_SRCS+= ${s}
.endfor
.endfor
.if !empty(_PROGS_COMMON_SRCS)
-_PROGS_COMMON_OBJS= ${_PROGS_COMMON_SRCS:N*.h:R:S/$/.o/g}
+_PROGS_COMMON_OBJS= ${_PROGS_COMMON_SRCS:M*.h}
+.if !empty(_PROGS_COMMON_SRCS:N*.h)
+_PROGS_COMMON_OBJS+= ${_PROGS_COMMON_SRCS:N*.h:R:S/$/.o/g}
+.endif
${PROGS}: ${_PROGS_COMMON_OBJS}
.endif
OpenPOWER on IntegriCloud