aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-09-28 13:03:32 +0200
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-09-28 13:03:32 +0200
commit9e333d8495829f7eebaecb58e4920d83b2150276 (patch)
treef02dc8a7f0d28d343091adf7418e7ee0da833b5a
parent0650076c3c9cff35501c82307f99900ec411a26d (diff)
downloadlibrb-9e333d8495829f7eebaecb58e4920d83b2150276.tar.gz
librb-9e333d8495829f7eebaecb58e4920d83b2150276.tar.bz2
librb-9e333d8495829f7eebaecb58e4920d83b2150276.zip
fix: make distcheck error
-rw-r--r--Makefile.am10
-rw-r--r--examples/Makefile.am7
-rw-r--r--man/Makefile.am2
-rw-r--r--readme.md8
-rw-r--r--www/Makefile.am2
5 files changed, 20 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am
index 50c2760..d7f13e5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,7 +38,7 @@ endif
# building website and manuals
-SUBDIRS = man www
+SUBDIRS = man www examples
EXTRA_DIST = gen-download-page.sh man2html.sh readme.md tap-driver.sh
www:
@@ -47,20 +47,16 @@ www:
make www -C www
examples:
- make -C examples
+ make examples -C examples
# clean targets
-clean_www:
- make clean -C www
-
-clean_targets = clean_www
+clean_targets=
if HAVE_GCOV
clean_targets += clean-gcov
endif
clean-local: $(clean_targets)
- make clean -C examples
.PHONY: examples clean_www www analyze tests librb.la
diff --git a/examples/Makefile.am b/examples/Makefile.am
index 34bc836..dfff50f 100644
--- a/examples/Makefile.am
+++ b/examples/Makefile.am
@@ -1,5 +1,5 @@
CFLAGS += -I$(top_srcdir)
-bin_PROGRAMS = event_loop \
+EXTRA_PROGRAMS = event_loop \
no_dynamic_allocations \
posix_network_parser \
prod_cons_threads \
@@ -10,3 +10,8 @@ no_dynamic_allocations_SOURCES = no-dynamic-allocations.c rb.c
posix_network_parser_SOURCES = posix-network-parser.c rb.c
prod_cons_threads_SOURCES = prod-cons-threads.c rb.c
simple_read_write_SOURCES = simple-read-write.c rb.c
+
+examples: $(EXTRA_PROGRAMS)
+
+clean-local:
+ rm -f $(EXTRA_PROGRAMS)
diff --git a/man/Makefile.am b/man/Makefile.am
index 8816e97..dd10a81 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -12,3 +12,5 @@ man_MANS = rb_clear.3 \
rb_write.3 \
rb_stop.3
EXTRA_DIST = $(man_MANS)
+
+clean:
diff --git a/readme.md b/readme.md
index 7e137ea..582d9c7 100644
--- a/readme.md
+++ b/readme.md
@@ -141,6 +141,12 @@ directory
$ make examples
~~~
+Examples
+========
+
+Example codes can be found here:
+[http://git.kurwinet.pl/librb/tree/examples][examples]
+
Build time options
==================
@@ -214,3 +220,5 @@ See also
[fsleak]: http://ci.librb.kurwinet.pl/badges/fsanitize-leak.svg
[fsthread]: http://ci.librb.kurwinet.pl/badges/fsanitize-thread.svg
[fsun]: http://ci.librb.kurwinet.pl/badges/fsanitize-undefined.svg
+
+[examples]: http://git.kurwinet.pl/librb/tree/examples
diff --git a/www/Makefile.am b/www/Makefile.am
index 785d4ee..da1910a 100644
--- a/www/Makefile.am
+++ b/www/Makefile.am
@@ -4,7 +4,7 @@ www:
kursg -o out
chmod a+rX out -R
-make clean:
+clean-local:
$(RM) -r out
$(RM) -r manuals
$(RM) downloads.html