clean up makefile so that make will fail if awk fails or isn't present

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1813 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2003-06-23 01:11:20 +00:00
1 parent e9f1938938
commit 2a71255c18
1 file changed
+3 -4
+3 -4
View File
@@ -27,10 +27,9 @@ KERNELINCLUDEFILES += $(MODULE_DIR)/sensors.h
endif
$(KERNELINCLUDEDIR)/sensors.h: $(KERNELINCLUDEDIR)/sensors.h.template
( cat $@.template ; \
$(AWK) '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' $(KERNELCHIPSDIR)/*.c ;\
echo '#endif' \
) > $@
cat $@.template > $@
$(AWK) '/SENSORS SYSCTL START/,/SENSORS SYSCTL END/' $(KERNELCHIPSDIR)/*.c >> $@
echo '#endif' >> $@
$(KERNELINCLUDEDIR)/sensors.hd:
( $(GREP) 'SENSORS SYSCTL START' /dev/null $(KERNELCHIPSDIR)/*.c | \