-all: $(PROGS)
-
-%.o: %.cc
- $(CXX) -c $(CXXFLAGS) $(MYCXXFLAGS) $^ -o $@
-
-%.o: %.c
- $(CC) -c $(CFLAGS) $(MYCFLAGS) $^ -o $@
-
-notmuch: notmuch.o database.o date.o message.o xutil.o
- $(CC) $(MYLDFLAGS) $^ -o $@
-
-clean:
- rm -f $(PROGS) *.o
+# Finally, include all of the Makefile.local fragments where all the
+# real work is done.
+include Makefile.local $(subdirs:%=%/Makefile.local)