From 644009c6a79f6c7f60dcb04e6baa966d4d4b0081 Mon Sep 17 00:00:00 2001
From: Aidan Chalk <aidan@lapito.dl.ac.uk>
Date: Thu, 27 Apr 2017 15:22:57 +0100
Subject: [PATCH] Attempt to fix up the Makefile.am to make building more
 reliable

---
 src/Makefile.am | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Makefile.am b/src/Makefile.am
index 4011a43..8de97b4 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -34,6 +34,8 @@ include_HEADERS = atomic.h lock.h queue.h qsched.h task.h res.h error.h quicksch
 # Private headers.
 noinst_HEADERS = cycle.h quicksched.h
 
+quicksched.mod: fqsched.F90
+
 # Versioning. If any sources change then update the version.h file with
 # the current git revision and package version.
 version.h: version.h.in $(AM_SOURCES) $(include_HEADERS) $(noinst_HEADERS)
@@ -44,7 +46,7 @@ version.h: version.h.in $(AM_SOURCES) $(include_HEADERS) $(noinst_HEADERS)
 	fi
 
 #  Make sure version.h is built first.
-BUILT_SOURCES = version.h
+BUILT_SOURCES = quicksched.mod version.h
 
 #  And distribute the built files.
 EXTRA_DIST = version.h version.h.in
-- 
GitLab