when working on the HandsOn4 you will see that the notes for the tutorial are hosted at SLAC with rather "generic" instructions. I have translated them into 'iridium-able' commands ;-)
===================================================================================
BLOCK 1 OPTION: SEPARATE build and source directory - getting the exercise code and compile
===================================================================================
$ mkdir ~/HandsOn4 # make new working directory
$ cd ~/HandsOn4 # change to your new working directory
$ wget http://geant4.slac.stanford.edu/SLACG4TutorialHandsOn/HandsOn4/HandsOn4.tar.gz
$ wget http://geant4.slac.stanford.edu/SLACG4TutorialHandsOn/HandsOn4/HandsOn4-solution.tar.gz
$ tar xzf HandsOn4.tar.gz # extract source code
# optionally extract in a similar way the solution. But please give the exercise a try first ;-)
$ mkdir build-HandsOn4
$ cd build-HandsOn4
$ cmake ../HandsOn4
$ make
$ ./SLACtut
# If at the time of quitting the execution you do not return to the prompt, you can try
# to 'kill' the process by pressing 'C-c' (Control key + c key)
===================================================================================
RINSE AND REPEAT
===================================================================================
# ... modify files located under '~/HandsOn4/HandsOn4'
# compile the code at ~/HandsOn4/build-HandsOn4
$ make
# when you issued 'cmake ../HandsOn4' those two folders got linked. It would just work
# If at the time of quitting the execution you do not return to the prompt, you can try
# to 'kill' the process by pressing 'C-c' (Control key + c key)
===================================================================================
OR
===================================================================================
BLOCK 1 OPTION: SAME build and source directory - getting the exercise code and compile
===================================================================================
$ mkdir ~/HandsOn4 # make new working directory
$ cd ~/HandsOn4 # change to your new working directory
$ wget http://geant4.slac.stanford.edu/SLACG4TutorialHandsOn/HandsOn4/HandsOn4.tar.gz
$ wget http://geant4.slac.stanford.edu/SLACG4TutorialHandsOn/HandsOn4/HandsOn4-solution.tar.gz
$ tar xzf HandsOn4.tar.gz # extract source code
# optionally extract in a similar way the solution. But please give the exercise a try first ;-)
$ cd HandsOn4
$ cmake .
$ make -f Makefile
$ ./SLACtut
# If at the time of quitting the execution you do not return to the prompt, you can try
# to 'kill' the process by pressung 'C-c' (Control key + c key)
===================================================================================
RINSE AND REPEAT
===================================================================================
# ... modify files located under '~/HandsOn4/HandsOn4'
# compile the code directly at ~/HandsOn4/HandsOn4
$ make -f Makefile
# If at the time of quitting the execution you do not return to the prompt, you can try
# to 'kill' the process by pressung 'C-c' (Control key + c key)
==================================================================================