From bd1c66b245ac73824e45bcd99952c1e062da57dc Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 4 Dec 2020 20:09:30 +0100 Subject: [PATCH] Don't use hard TABs in the makefile snippet in the docs This doesn't pass the indentation style check and TABs are likely to get lost when copying/pasting anyhow, so remove them and add an explicit note about TABs being needed here instead. --- docs/gtk/install.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/gtk/install.md b/docs/gtk/install.md index af2a35c3ee..e333de3be3 100644 --- a/docs/gtk/install.md +++ b/docs/gtk/install.md @@ -264,17 +264,19 @@ which may be combined into a single invocation: g++ myfoo.cpp `wx-config --cxxflags --libs` -o myfoo A simple makefile for a program using wxWidgets could be written -in the following way: +in the following way (note that if you are copying and pasting +this into your makefile, the leading spaces must be replaced by a +`TAB` character): ```make program: program.o - $(CXX) -o program program.o `wx-config --libs` + $(CXX) -o program program.o `wx-config --libs` program.o: program.cpp - $(CXX) `wx-config --cxxflags` -c program.cpp -o program.o + $(CXX) `wx-config --cxxflags` -c program.cpp -o program.o clean: - $(RM) program.o program + $(RM) program.o program .PHONY: clean ```