Created
February 8, 2015 19:10
-
-
Save gilligan/d85f867c3815d92b63b9 to your computer and use it in GitHub Desktop.
parallel make problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "MAGIC!" | |
cp src/foo.y dst/foo.x | |
cp src/bar.y dst/bar.x | |
cp src/baz.y dst/baz.x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all: foo | |
foo: dst/foo.x dst/bar.x dst/baz.x | |
dst/foo.x dst/bar.x dst/baz.x : src/foo.y src/bar.y src/baz.y | |
@./magic | |
clean: | |
rm dst/* |
all: foo
foo: dst/foo.x dst/bar.x dst/baz.x
dst/%.x: src/%.y ; ./magic
clean:
-rm dst/*
#dst/foo.x dst/bar.x dst/baz.x : src/foo.y src/bar.y src/baz.y
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
versus
how can I get make to only invoke magic once as it is supposed to ?