mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-18 11:09:32 +00:00
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:
1 parent
e9f1938938
commit
2a71255c18
1 file changed
+3
-4
@@ -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 | \
|
||||
|
||||
Reference in new issue
Block a user