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