summaryrefslogtreecommitdiffstats
path: root/sys/modules/ar/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/ar/Makefile')
-rw-r--r--sys/modules/ar/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/modules/ar/Makefile b/sys/modules/ar/Makefile
index fae9452..78fe22e 100644
--- a/sys/modules/ar/Makefile
+++ b/sys/modules/ar/Makefile
@@ -5,13 +5,13 @@ KMOD = if_ar
SRCS = if_ar.c if_ar_isa.c if_ar_pci.c
SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h
+.if !defined(KERNBUILDDIR)
NETGRAPH?= 0
-opt_netgraph.h:
.if ${NETGRAPH} != 0
+opt_netgraph.h:
echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h
-.else
- echo "" > opt_netgraph.h
+.endif
.endif
.include <bsd.kmod.mk>
OpenPOWER on IntegriCloud