Skip to content
Snippets Groups Projects
Commit 02851bc9 authored by Mactavish's avatar Mactavish
Browse files

fix the indentation

parent 33df926a
Branches
No related tags found
No related merge requests found
...@@ -699,26 +699,23 @@ These are the variables that allow you to refer to the same name defined in `tar ...@@ -699,26 +699,23 @@ These are the variables that allow you to refer to the same name defined in `tar
hello: p1 p2 hello: p1 p2
# Outputs "hello", since this is the target name # Outputs "hello", since this is the target name
echo $@ echo $@
# Outputs all prerequisites newer than the target # Outputs all prerequisites newer than the target
echo $? echo $?
# Outputs all prerequisites # Outputs all prerequisites
echo $^ echo $^
# Outputs the first prerequisite
# Outputs the first prerequisite echo $<
echo $< # create the target file
touch hello
touch hello
p1: p1:
touch p1 touch p1
p2: p2:
touch p2 touch p2
clean: clean:
rm -f hello p1 p2 rm -f hello p1 p2
``` ```
#### Marcos/Variables #### Marcos/Variables
...@@ -751,13 +748,14 @@ CFLAGS = -g # Flag for implicit rules. Turn on debug info ...@@ -751,13 +748,14 @@ CFLAGS = -g # Flag for implicit rules. Turn on debug info
# Implicit rule #1: blah is built via the C linker implicit rule # Implicit rule #1: blah is built via the C linker implicit rule
# Implicit rule #2: blah.o is built via the C compilation implicit rule, because blah.c exists # Implicit rule #2: blah.o is built via the C compilation implicit rule, because blah.c exists
blah: blah.o blah: blah.o
blah.c: blah.c:
echo "int main() { return 0; }" > blah.c echo "int main() { return 0; }" > blah.c
clean: clean:
rm -f blah* rm -f blah*
``` ```
#### Pattern Rules #### Pattern Rules
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment