]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
More intelligent `something wrong' message.
authorRusty Russell <rusty@linuxcare.com.au>
Sun, 30 Jul 2000 01:42:17 +0000 (01:42 +0000)
committerRusty Russell <rusty@rustcorp.com.au>
Sun, 30 Jul 2000 01:42:17 +0000 (01:42 +0000)
Rules.make

index 5573ba2c6054f3b286f94a4dd815991e52ef2ae6..02bd086d9e06a98c9781063f2608cdf597dc14a1 100644 (file)
@@ -32,7 +32,8 @@ $(SHARED_LIBS): %.so : %_sh.o
 # This is useful for when dependencies completely screwed
 %.h::
        @echo Something wrong... deleting dependencies.
-       -rm -f $(DEPFILES) $(EXTRA_DEPENDS) .makefirst
+       @-rm -f $(DEPFILES) $(EXTRA_DEPENDS) .makefirst
+       @[ -d $(KERNEL_DIR)/include/linux/netfilter_ipv4 ] || echo -e '\n\n    Please try `make KERNEL_DIR=path-to-correct-kernel'\'.'\n\n'
        @exit 1
 
 -include $(DEPFILES) $(EXTRA_DEPENDS)