aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorTaylor Holberton <taylorcholberton@gmail.com>2017-01-14 10:51:26 -0800
committerTaylor Holberton <taylorcholberton@gmail.com>2017-01-14 10:51:26 -0800
commit30f7ec55df2a68eba7e10f6314ad7c5cc50ae4f8 (patch)
treeabbbb0782a5d0875c48e1c98134406a88195d2c0 /examples
parent1482988aefc7ccd108adf1fcd90f6a7d28218afe (diff)
added clean target
Diffstat (limited to 'examples')
-rw-r--r--examples/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/examples/Makefile b/examples/Makefile
index a328a54..807d4c8 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -5,10 +5,17 @@ CFLAGS = -Wall -Wextra -Werror -Wfatal-errors -I ../include
VPATH = ../src
+EXAMPLES += pcm-readi
+EXAMPLES += pcm-writei
+
.PHONY: all
-all: pcm-readi pcm-writei
+all: $(EXAMPLES)
pcm-readi: pcm-readi.c -ltinyalsa
pcm-writei: pcm-writei.c -ltinyalsa
+.PHONY: clean
+clean:
+ rm -f $(EXAMPLES)
+