implement a "make no-installed" command
This commit is contained in:
@ -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'
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user