Skip to content

Commit d60b3a0

Browse files
committed
Reformat comments based on JSDoc
1 parent ed59e1e commit d60b3a0

1 file changed

Lines changed: 34 additions & 16 deletions

File tree

  • tools/snippets/benchmark/fortran/native

tools/snippets/benchmark/fortran/native/Makefile

Lines changed: 34 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -78,39 +78,57 @@ SOURCE_FILES ?=
7878
f_targets := TODO.out
7979

8080

81-
# TARGETS #
81+
# RULES #
8282

83-
# Default target.
83+
#/
84+
# Compiles Fortran source files.
8485
#
85-
# This target is the default target.
86-
86+
# @param {string} SOURCE_FILES - list of Fortran source files
87+
# @param {string} [INCLUDE] - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
88+
# @param {string} [FORTRAN_COMPILER] - Fortran compiler
89+
# @param {string} [FFLAGS] - Fortran compiler flags
90+
# @param {(string|void)} [fPIC] - flag indicating whether to generate position independent code
91+
#
92+
# @example
93+
# make
94+
#
95+
# @example
96+
# make all
97+
#/
8798
all: $(f_targets)
8899

89100
.PHONY: all
90101

91-
92-
# Compile Fortran source.
102+
#/
103+
# Compiles Fortran source files.
93104
#
94-
# This target compiles Fortran source files.
95-
105+
# @private
106+
# @param {string} SOURCE_FILES - list of Fortran source files
107+
# @param {(string|void)} INCLUDE - list of includes (e.g., `-I /foo/bar -I /beep/boop`)
108+
# @param {string} FC - Fortran compiler
109+
# @param {string} FFLAGS - Fortran compiler flags
110+
# @param {(string|void)} fPIC - flag indicating whether to generate position independent code
111+
#/
96112
$(f_targets): %.out: %.f
97113
$(QUIET) $(FC) $(FFLAGS) $(fPIC) $(INCLUDE) -o $@ $(SOURCE_FILES) $<
98114

99-
100-
# Run a benchmark.
115+
#/
116+
# Runs compiled benchmarks.
101117
#
102-
# This target runs a benchmark.
103-
118+
# @example
119+
# make run
120+
#/
104121
run: $(f_targets)
105122
$(QUIET) ./$<
106123

107124
.PHONY: run
108125

109-
110-
# Perform clean-up.
126+
#/
127+
# Removes generated files.
111128
#
112-
# This target removes generated files.
113-
129+
# @example
130+
# make clean
131+
#/
114132
clean:
115133
$(QUIET) -rm -f *.o *.out
116134

0 commit comments

Comments
 (0)