implement a "make no-installed" command

This commit is contained in:
Axel Kohlmeyer
2022-05-06 13:34:48 -04:00
parent 8e423f07c5
commit 78f2907cbb
3 changed files with 14 additions and 1 deletions

View File

@ -547,6 +547,9 @@ yes-all:
no-all:
@for p in $(PACKAGE); do $(MAKE) no-$$p; done
no-installed:
@for p in $(PACKAGESORTED); do $(SHELL) Package.sh $$p info && $(MAKE) no-$$p || : ; done
yes-standard yes-std:
@echo 'There are no more "standard" or "user" packages in LAMMPS'

View File

@ -41,6 +41,15 @@ elif (test $2 = "installed") then
echo "Installed YES: package $1"
fi
# info, exit with true/false status depending on whether a package is installed
elif (test $2 = "info") then
if (test $installed = 1) then
exit 0
else
exit 1
fi
# update, only if installed
# perform a re-install, but only if the package is already installed