From 8697cac6aaac72da9231d4021cde7fe32d0b4376 Mon Sep 17 00:00:00 2001
From: Axel Kohlmeyer <akohlmey@gmail.com>
Date: Wed, 9 May 2018 16:06:37 -0400
Subject: [PATCH] make QEQ package depend on MANYBODY

the qeq/fire style depends on pair style comb,
thus QEQ needs and explicit Install.sh file and
it has to depend on MANYBODY
---
 src/Depend.sh      |  1 +
 src/QEQ/Install.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 src/QEQ/Install.sh

diff --git a/src/Depend.sh b/src/Depend.sh
index 9fe30e6583..b6d9c70f13 100644
--- a/src/Depend.sh
+++ b/src/Depend.sh
@@ -87,6 +87,7 @@ if (test $1 = "MANYBODY") then
   depend GPU
   depend KOKKOS
   depend OPT
+  depend QEQ
   depend USER-MISC
   depend USER-OMP
 fi
diff --git a/src/QEQ/Install.sh b/src/QEQ/Install.sh
new file mode 100644
index 0000000000..334be24e4b
--- /dev/null
+++ b/src/QEQ/Install.sh
@@ -0,0 +1,46 @@
+# Install/unInstall package files in LAMMPS
+# mode = 0/1/2 for uninstall/install/update
+
+# this is default Install.sh for all packages
+# if package has an auxiliary library or a file with a dependency,
+# then package dir has its own customized Install.sh
+
+mode=$1
+
+# enforce using portable C locale
+LC_ALL=C
+export LC_ALL
+
+# arg1 = file, arg2 = file it depends on
+
+action () {
+  if (test $mode = 0) then
+    rm -f ../$1
+  elif (! cmp -s $1 ../$1) then
+    if (test -z "$2" || test -e ../$2) then
+      cp $1 ..
+      if (test $mode = 2) then
+        echo "  updating src/$1"
+      fi
+    fi
+  elif (test -n "$2") then
+    if (test ! -e ../$2) then
+      rm -f ../$1
+    fi
+  fi
+}
+
+# all package files with dependencies
+
+action fix_qeq.cpp
+action fix_qeq.h
+action fix_qeq_dynamic.cpp
+action fix_qeq_dynamic.h
+action fix_qeq_fire.cpp pair_comb.h
+action fix_qeq_fire.h pair_comb.h
+action fix_qeq_point.cpp
+action fix_qeq_point.h
+action fix_qeq_shielded.cpp
+action fix_qeq_shielded.h
+action fix_qeq_slater.cpp
+action fix_qeq_slater.h
-- 
GitLab