-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
48 lines (34 loc) · 1.11 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#----------------------------------------------------------
# Using Github.com code management
# Usage example 'make -f Makefile addPK'
# Init:
# A. fork git://github.com/kaitanie/Spallation.git in Github to you own account
# B. only once
# git clone git://github.com/[username]/Spallation.git
# When you start your session do 'make addPK' and 'make getPK'
# [local edit]
# git diff
# git status
# git commit -a -m '[your comment]' (add all changes)
# git push git@github.com:[username]/Spallation.git
#git revert HEAD (in case of bad commit this reverses it)
pushAH:
git push git@github.com:aatos/Spallation.git
addPK:
git remote add pekka git://github.com/kaitanie/Spallation.git
getPK:
git fetch pekka
git merge pekka/master
run:
$(G4INSTALL)/bin/$(G4SYSTEM)/test30
clean:
rm *.root *.profile
runFission:
$(G4INSTALL)/bin/$(G4SYSTEM)/test30 runs/uFission.mac
debug:
@echo '::: entering gdb. (gdb) help/run/quit'
gdb $(G4INSTALL)/bin/$(G4SYSTEM)/test30
profile:
@echo '::: profiling'
gprof $(G4INSTALL)/bin/$(G4SYSTEM)/test30 > test30.profile
gprof -b $(G4INSTALL)/bin/$(G4SYSTEM)/test30 | more