Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created subdirectories src and examples
- Loading branch information
Showing
26 changed files
with
40 additions
and
62 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,13 @@ | ||
purple_fringe: purple_fringe.ml | ||
ocamlfind ocamlopt -o purple_fringe purple_fringe.ml \ | ||
-package camlimages -linkpkg | ||
.PHONY: default | ||
default: | ||
cd src; $(MAKE) | ||
|
||
.PHONY: examples | ||
EXAMPLES = \ | ||
wikipedia-horsie \ | ||
butterfly \ | ||
eye \ | ||
purple-sky \ | ||
tree \ | ||
purple0 \ | ||
purple1 \ | ||
purple2 \ | ||
purple3 | ||
|
||
EXAMPLES_IN = $(addsuffix .jpg, $(EXAMPLES)) | ||
EXAMPLES_OUT = $(addsuffix -fixed.jpg, $(EXAMPLES)) | ||
|
||
examples: examples.html | ||
examples.html: $(EXAMPLES_OUT) Makefile | ||
./make-examples.sh $(EXAMPLES) | ||
|
||
%-fixed.jpg: %.jpg purple_fringe | ||
./purple_fringe $< $@ | ||
examples: default | ||
cd examples; $(MAKE) | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f *.cmi *.cmx *.o purple_fringe | ||
rm -f *~ | ||
cd src; $(MAKE) clean | ||
cd examples; $(MAKE) clean |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.PHONY: examples | ||
EXAMPLES = \ | ||
wikipedia-horsie \ | ||
butterfly \ | ||
eye \ | ||
tree \ | ||
snake \ | ||
purple-sky \ | ||
purple0 \ | ||
purple1 \ | ||
purple2 \ | ||
purple3 | ||
|
||
EXAMPLES_IN = $(addsuffix .jpg, $(EXAMPLES)) | ||
EXAMPLES_OUT = $(addsuffix -fixed.jpg, $(EXAMPLES)) | ||
|
||
examples: examples.html | ||
examples.html: $(EXAMPLES_OUT) Makefile | ||
./make-examples.sh $(EXAMPLES) | ||
|
||
%-fixed.jpg: %.jpg ../src/unpurple | ||
../src/unpurple $< $@ | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f *~ |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
unpurple: unpurple.ml | ||
ocamlfind ocamlopt -o unpurple unpurple.ml \ | ||
-package camlimages -linkpkg | ||
.PHONY: clean | ||
clean: | ||
rm -f *~ *.cmi *.cmx *.o unpurple |
File renamed without changes.