1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-05 22:37:42 +02:00

can't use % stems in the recipe itself.

This commit is contained in:
robochat
2015-09-22 08:39:33 +00:00
parent a020a82521
commit 3fcea9a3fd

View File

@@ -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.