Skip to content

Commit

Permalink
-Added makefile for package install.
Browse files Browse the repository at this point in the history
-added some missing comments in liquify.tcl
  • Loading branch information
Leif Hickey committed Jun 10, 2013
1 parent 35e9631 commit ab49e20
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
installdir=${HOME}/vmdplugins/liquify

all:
@echo "Nothing to build"

install: liquify.tcl pkgIndex.tcl vmdrc
@echo "Copying files..."
mkdir -p ${installdir}
cp liquify.tcl ${installdir}/
cp pkgIndex.tcl ${installdir}/
cp vmdrc ${HOME}/.vmdrc

pkgIndex.tcl:
@echo "Generating pkgIndex.tcl ..."
( echo pkg_mkIndex . liquify.tcl ) | tclsh

clean:
rm pkgIndex.tcl
6 changes: 3 additions & 3 deletions liquify.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ proc ::liquify::check_overlap {test_data_wrapped placed cog diam} {
}

#
#
# Write a XSC file used by NAMD to setup PBC
#
proc ::liquify::write_xsc {} {
variable options
Expand All @@ -553,7 +553,7 @@ proc ::liquify::write_xsc {} {
}

#
#
# Calculate the density of the active molecule
#
proc ::liquify::calc_density {} {
set resids [lsort -integer -unique [[atomselect top all] get resid]]
Expand Down Expand Up @@ -586,7 +586,7 @@ proc ::liquify::random_xyz {} {
}

#
#
# Return a random angle
#
proc ::liquify::random_angle {} {
return [expr (360.0 * rand())]
Expand Down

0 comments on commit ab49e20

Please sign in to comment.