  FOX_STATIC_LIBFILES = $(patsubst -l%,${FOX_LIBDIR}/lib%.a,${FOX_LIBS})
  FOX_STATIC_LIBFILE_OBJS = $(shell for i in ${FOX_STATIC_LIBFILES}; do ar -t $$i; done | grep \.o)
  
+ # general rule to make a module
+ 
+-${MODULES} ${PROGRAMS}:  ${BUILDDIR}/Makefile.inc ${BUILDDIR} ${FOX}
++${MODULES} ${PROGRAMS}:  ${BUILDDIR}/Makefile.inc ${BUILDDIR}
+ 	@echo "********************************************"
+ 	@echo ""
+ 	@echo " Making $@ "
+@@ -173,7 +160,7 @@ Programs/% src/Programs/% : ${MODULES} ${PROGRAMS}
+ # dependencies between modules
+ 
+ ifeq (${HAVE_GAP},1)
+-GAP: libAtoms ${FOX}
++GAP: libAtoms
+ GAPFIT: ${GAP} Potentials Utils
+ 	@echo "********************************************"
+ 	@echo ""

 
 # now we can include the config makefile, it needs to come after the default target
 include Makefile.config
@@ -126,19 +126,6 @@ ${BUILDDIR}/Makefile.inc:
 		exit 1 ;\
 		fi
 

From 0bad3489687f148badc624fa1dd65c1f0c2bb1f9 Mon Sep 17 00:00:00 2001
From: Jan Janssen <jan-janssen@users.noreply.github.com>
Date: Sun, 21 Feb 2021 11:54:05 +0100
Subject: [PATCH] Update Makefile

---
 Makefile | 21 ++++-----------------
 1 file changed, 4 insertions(+), 17 deletions(-)

diff --git a/Makefile b/Makefile
index 85baa2eee..57029c405 100644
--- a/Makefile
+++ b/Makefile
@@ -111,8 +111,8 @@ $(info Using QUIP_ARCH=${QUIP_ARCH}, MODULES=${MODULES}, QUIP_ROOT=${QUIP_ROOT})
