summaryrefslogtreecommitdiff
path: root/doc/examples/Makefile
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-08-23 20:17:25 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-08-27 10:09:31 +0200
commitc0bca6425d6e7e5d9f3094f56a17bad213c639db (patch)
tree976175c9b6558fa9478deb41cec87310d3153ac3 /doc/examples/Makefile
parent73b40dafc8365eeb7c1451d3221f2f27d7f22e8f (diff)
examples/decoding_encoding: store temporary files in current dir
Do not clutter the temporary directory with files, also "/tmp" is not always available, e.g. in Windows. Also add the clean-test Makefile rule, which will clean the generated files.
Diffstat (limited to 'doc/examples/Makefile')
-rw-r--r--doc/examples/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/examples/Makefile b/doc/examples/Makefile
index 5217d6e56a..c630b2aa9e 100644
--- a/doc/examples/Makefile
+++ b/doc/examples/Makefile
@@ -23,9 +23,12 @@ OBJS=$(addsuffix .o,$(EXAMPLES))
decoding_encoding: LDLIBS += -lm
muxing: LDLIBS += -lm
-.phony: all clean
+.phony: all clean-test clean
all: $(OBJS) $(EXAMPLES)
-clean:
+clean-test:
+ rm -rf test*.pgm test.h264 test.mp2 test.sw test.mpg
+
+clean: clean-test
rm -rf $(EXAMPLES) $(OBJS)