mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-22 21:52:31 +03:00
can't use % stems in the recipe itself.
This commit is contained in:
parent
a020a82521
commit
3fcea9a3fd
@ -97,7 +97,7 @@ process: ex1.txt file0.txt
|
||||
# Can teach make how to convert certain files into other files.
|
||||
|
||||
%.png: %.svg
|
||||
inkscape --export-png %.svg
|
||||
inkscape --export-png $^
|
||||
|
||||
# Pattern rules will only do anything if make decides to create the \
|
||||
target.
|
||||
@ -105,7 +105,7 @@ target.
|
||||
# Directory paths are normally ignored when matching pattern rules. But
|
||||
# make will try to use the most appropriate rule available.
|
||||
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.
|
||||
%.png: %.svg
|
||||
@ -113,7 +113,7 @@ small/%.png: %.svg
|
||||
|
||||
# However make will use the first pattern rule that can make the target
|
||||
%.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
|
||||
# how to turn *.c files into *.o files.
|
||||
|
Loading…
Reference in New Issue
Block a user