Skip to content

Commit e064106

Browse files
Change Makefile snippets to use tabs (#333)
Makefile requires usage of tabs for indentation, otherwise it throws `*** missing separator. Stop.`
1 parent a7de542 commit e064106

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

en/02_Development_environment.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ use tabs for indentation instead of spaces.
367367

368368
```make
369369
VulkanTest: main.cpp
370-
g++ $(CFLAGS) -o VulkanTest main.cpp $(LDFLAGS)
370+
g++ $(CFLAGS) -o VulkanTest main.cpp $(LDFLAGS)
371371
```
372372

373373
Verify that this rule works by saving the makefile and running `make` in the
@@ -381,10 +381,10 @@ run the executable and the latter will remove a built executable:
381381
.PHONY: test clean
382382

383383
test: VulkanTest
384-
./VulkanTest
384+
./VulkanTest
385385

386386
clean:
387-
rm -f VulkanTest
387+
rm -f VulkanTest
388388
```
389389

390390
Running `make test` should show the program running successfully, and displaying the number of Vulkan extensions. The application should exit with the success return code (`0`) when you close the empty window. You should now have a complete makefile that resembles the following:
@@ -394,15 +394,15 @@ CFLAGS = -std=c++17 -O2
394394
LDFLAGS = -lglfw -lvulkan -ldl -lpthread -lX11 -lXxf86vm -lXrandr -lXi
395395

396396
VulkanTest: main.cpp
397-
g++ $(CFLAGS) -o VulkanTest main.cpp $(LDFLAGS)
397+
g++ $(CFLAGS) -o VulkanTest main.cpp $(LDFLAGS)
398398

399399
.PHONY: test clean
400400

401401
test: VulkanTest
402402
./VulkanTest
403403

404404
clean:
405-
rm -f VulkanTest
405+
rm -f VulkanTest
406406
```
407407

408408
You can now use this directory as a template for your Vulkan projects. Make a copy, rename it to something like `HelloTriangle` and remove all of the code in `main.cpp`.

0 commit comments

Comments
 (0)