Fixed dbmarshal.h dependency.
authorNot Zed <notzed@gmail.com>
Thu, 10 Jun 2021 00:07:25 +0000 (09:37 +0930)
committerNot Zed <notzed@gmail.com>
Thu, 10 Jun 2021 00:07:25 +0000 (09:37 +0930)
Makefile

index 13cec01..153b89f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -110,9 +110,11 @@ input-monitor: input-monitor.o notify.o blobs.o
 disk-util: disk-util.o dbindex.o dbmarshal.o
 http-monitor: http-monitor.o dbindex.o notify.o dbmarshal.o ../libeze/libeze.a
 
+dbindex.o: dbmarshal.h
+
 %.d: %.c
        @rm -rf $@
-       @cc -MM -MT "$*.o" $< -o $@~ $(CFLAGS)
+       @cc -MM -MT "$*.o" $< -o $@~ $(CFLAGS) 2>/dev/null
        @sed 's,\($*\.o\) *:,\1 $@ : ,g' $@~ > $@ && rm $@~
 
 ifeq '$(filter clean dist,$(MAKECMDGOALS))' ''