diff --git a/src/lib/Makefile b/src/lib/Makefile
index 3e9bed85809276b70634168e00a30157460ae161..94ed7ce95d3bd1a732e1eb7847a8f807c90ac12d 100644
--- a/src/lib/Makefile
+++ b/src/lib/Makefile
@@ -52,7 +52,7 @@ PLUMED_MAIN_STATIC := $(PLUMED_LIBDIR)plumed
 PLUMED_MAIN_SHARED := $(PLUMED_LIBDIR)plumed-shared
 PLUMED_MAIN_RUNTIME := $(PLUMED_LIBDIR)plumed-runtime
 
-.PHONY: all dirs $(DIRS) all-static
+.PHONY: all dirs $(DIRS) all-static Plumed.cmake Plumed.inc
 ifdef SOEXT
 all:
 	@echo First making other dirs $(DIRS)