Skip to content

Commit f570964

Browse files
author
Andre Lanrezac
committed
refactor(example): Add Makefile to 2particles example
1 parent 6626371 commit f570964

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

example/2particles/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
BASE_MK := $(shell echo $(PWD) | sed -E 's|(.*example).*|\1/base.mk|')
2+
3+
# Inclure base.mk si trouvé
4+
ifneq ($(wildcard $(BASE_MK)),)
5+
include $(BASE_MK)
6+
# $(info Included: $(BASE_MK))
7+
endif
8+
9+
10+
# ------------------------------------------------------------------------------
11+
# Usage: make run / make run_now
12+
# ------------------------------------------------------------------------------

example/2particles/README

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
This a very simple system with 2 particles. The file `model.vmd` is optional and use for a VMD visualization.
44

5-
### Generate the .nc file from the pdb
6-
7-
pdb2spn -s 2particles.pdb -o model.nc
8-
95
### Launch the simulation
106

11-
biospring -s model.nc -c param.msp
7+
make run / make run_now

0 commit comments

Comments
 (0)