• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revisionc965ce44e7d034b7930b18872670836561c05267 (tree)
Time2014-10-28 17:47:58
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Modify: Support for selecting option.
modified: Small Tools/mrcImage/mrcImageSpatialFrequencyFilter/Makefile/Makefile

Change Summary

Incremental Difference

--- a/Small Tools/mrcImage/mrcImageSpatialFrequencyFilter/Makefile/Makefile
+++ b/Small Tools/mrcImage/mrcImageSpatialFrequencyFilter/Makefile/Makefile
@@ -46,6 +46,15 @@ FIL_R_MAX=1
4646 FIL_EX=11
4747 FIL_SCALE=6
4848
49+### For mrcImageSpatialFrequencyFilter
50+# -filterCol
51+FIL_COL_R=1
52+FIL_COL_W=17
53+# -H
54+FIL_H=
55+# -L
56+FIL_L=
57+
4958 #### Rules of the list created ####
5059 # Defined at Sub
5160
@@ -113,6 +122,19 @@ all4::
113122 make Exe;
114123 make Final;
115124
125+SetOption::
126+ @Option= ; \
127+ if [ ! -z $(FIL_COL_R) -a ! -z $(FIL_COL_W) ] ; then \
128+ Option="$${Option} -filterCol $(FIL_COL_R) $(FIL_COL_W)"; \
129+ fi; \
130+ if [ ! -z $(FIL_H) ] ; then \
131+ Option="$${Option} -H $(FIL_H)"; \
132+ fi; \
133+ if [ ! -z $(FIL_L) ] ; then \
134+ Option="$${Option} -L $(FIL_L)"; \
135+ fi; \
136+ echo "$${Option}";
137+
116138 help_mrcImageSpatialFrequencyFilter::
117139 @echo
118140 @echo "Makefile for mrcImageSpatialFrequencyFilter"
@@ -162,6 +184,7 @@ help_mrcImageSpatialFrequencyFilter::
162184 ifdef INI
163185 ifdef OUT
164186 .$(INI).$(OUT):
165- mrcImageSpatialFrequencyFilter -i $*.$(INI) -filter $*.$(FIL) -o $*.$(OUT) -filterCol 1 17 -H 0.105469 -L 0.011719;
187+ Option=$$(make SetOption); \
188+ mrcImageSpatialFrequencyFilter -i $*.$(INI) -filter $*.$(FIL) -o $*.$(OUT) $$Option;
166189 endif #INI
167190 endif #OUT
Show on old repository browser