mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-15 11:14:24 +02:00
Merge pull request #1244 from robochat/master
fix two small bugs - tab error and quotation marks
This commit is contained in:
@@ -97,7 +97,7 @@ process: ex1.txt file0.txt
|
|||||||
# Can teach make how to convert certain files into other files.
|
# Can teach make how to convert certain files into other files.
|
||||||
|
|
||||||
%.png: %.svg
|
%.png: %.svg
|
||||||
inkscape --export-png %.svg
|
inkscape --export-png $^
|
||||||
|
|
||||||
# Pattern rules will only do anything if make decides to create the \
|
# Pattern rules will only do anything if make decides to create the \
|
||||||
target.
|
target.
|
||||||
@@ -105,7 +105,7 @@ target.
|
|||||||
# Directory paths are normally ignored when matching pattern rules. But
|
# Directory paths are normally ignored when matching pattern rules. But
|
||||||
# make will try to use the most appropriate rule available.
|
# make will try to use the most appropriate rule available.
|
||||||
small/%.png: %.svg
|
small/%.png: %.svg
|
||||||
inkscape --export-png --export-dpi 30 %.svg
|
inkscape --export-png --export-dpi 30 $^
|
||||||
|
|
||||||
# make will use the last version for a pattern rule that it finds.
|
# make will use the last version for a pattern rule that it finds.
|
||||||
%.png: %.svg
|
%.png: %.svg
|
||||||
@@ -113,7 +113,7 @@ small/%.png: %.svg
|
|||||||
|
|
||||||
# However make will use the first pattern rule that can make the target
|
# However make will use the first pattern rule that can make the target
|
||||||
%.png: %.ps
|
%.png: %.ps
|
||||||
@echo this rule is not chosen if %.svg and %.ps are both present
|
@echo this rule is not chosen if *.svg and *.ps are both present
|
||||||
|
|
||||||
# make already has some pattern rules built-in. For instance, it knows
|
# make already has some pattern rules built-in. For instance, it knows
|
||||||
# how to turn *.c files into *.o files.
|
# how to turn *.c files into *.o files.
|
||||||
@@ -222,7 +222,7 @@ report:
|
|||||||
ifeq ($(sport),tennis)
|
ifeq ($(sport),tennis)
|
||||||
@echo 'game, set, match'
|
@echo 'game, set, match'
|
||||||
else
|
else
|
||||||
@echo 'They think it's all over; it is now'
|
@echo "They think it's all over; it is now"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# There are also ifneq, ifdef, ifndef
|
# There are also ifneq, ifdef, ifndef
|
||||||
|
Reference in New Issue
Block a user