Skip to content

Commit

Permalink
Created subdirectories src and examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mjambon committed May 18, 2012
1 parent 5836c35 commit 96d3367
Show file tree
Hide file tree
Showing 26 changed files with 40 additions and 62 deletions.
32 changes: 8 additions & 24 deletions Makefile
@@ -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
38 changes: 0 additions & 38 deletions examples.html

This file was deleted.

26 changes: 26 additions & 0 deletions examples/Makefile
@@ -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
Binary file added examples/snake-fixed.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/snake.jpg
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
6 changes: 6 additions & 0 deletions src/Makefile
@@ -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.

0 comments on commit 96d3367

Please sign in to comment.