Fix parallel builds: only build final index incrementally
diff --git a/Makefile b/Makefile
index 237f365..c5387a8 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,8 @@
.PHONY: all clean test i5 i5valid krill index deploy show-server-log show-server-status
+.NOTPARALLEL: index
+
.PRECIOUS: $(TARGET_DIR)/%.i5.xml $(TARGET_DIR)/dnb%.pre.i5.xml %.zip %.tree_tagger.zip %.ud.zip %.marmot-malt.zip %.spacy.zip %.i5.xml %.tar
all: index
@@ -106,7 +108,6 @@
for f in $<; do tar -C $@ -xf $$f; done
-.NOTPARALLEL: $(TARGET_DIR)/dnb.index
$(TARGET_DIR)/dnb.index: $(foreach year,$(YEARS),$(TARGET_DIR)/dnb$(year).index)