summaryrefslogtreecommitdiffstats
path: root/sys/modules/sr/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sys/modules/sr/Makefile')
-rw-r--r--sys/modules/sr/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/modules/sr/Makefile b/sys/modules/sr/Makefile
index b49d21e..22bfc4b 100644
--- a/sys/modules/sr/Makefile
+++ b/sys/modules/sr/Makefile
@@ -5,13 +5,13 @@ KMOD = if_sr
SRCS = if_sr.c if_sr_isa.c if_sr_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