Skip to content

Commit a9a1d0f

Browse files
author
Colin Robertson
committed
Fix up code blocks
1 parent 7c12070 commit a9a1d0f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/build/reference/description-blocks.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ targets... : dependents...
1717

1818
A *dependency line* specifies one or more targets, and zero or more dependents. If a target doesn't exist, or has an earlier timestamp than a dependent, NMAKE executes the commands in the command block. NMAKE also executes the command block if the target is a [pseudotarget](pseudotargets.md). Here's an example dependency line:
1919

20-
`hi_bye.exe : hello.obj goodbye.obj helper.lib`
20+
```makefile
21+
hi_bye.exe : hello.obj goodbye.obj helper.lib
22+
```
2123

2224
In this dependency line, `hi_bye.exe` is the target. Its dependencies are `hello.obj`, `goodbye.obj`, and `helper.lib`. The dependency line tells NMAKE to build the target whenever `hello.obj`, `goodbye.obj`, or `helper.lib` has changed more recently than `hi_bye.exe`.
2325

@@ -96,7 +98,7 @@ climb.exe : up.obj
9698

9799
To update a target in more than one description block using different commands, specify two consecutive colons (::) between targets and dependents.
98100

99-
```mak
101+
```makefile
100102
target.lib :: one.asm two.asm three.asm
101103
ml one.asm two.asm three.asm
102104
lib target one.obj two.obj three.obj
@@ -194,7 +196,9 @@ Enclose directory names in braces (`{ }`). Separate multiple directories with a
194196

195197
This dependency line shows how to create a directory specification for a search:
196198

197-
`reverse.exe : {\src\omega;e:\repo\backwards}retro.obj`
199+
```makefile
200+
reverse.exe : {\src\omega;e:\repo\backwards}retro.obj
201+
```
198202

199203
The target `reverse.exe` has one dependent, `retro.obj`. The brace-enclosed list specifies two directories. NMAKE searches for `retro.obj` in the current directory first. If it isn’t there, NMAKE searches the `\src\omega` directory, then the `e:\repo\backwards` directory.
200204

0 commit comments

Comments
 (0)