diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-11-15 11:13:47 +0100 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-11-15 11:42:42 +0100 |
commit | 0d0cb868d7139e60896a86262c255ff84292b210 (patch) | |
tree | a2f3778f9e53703729ccbce576952c765711bbce | |
parent | d23ddd7f5f34156f79cb3a22538d1ea55dd86610 (diff) | |
download | embedlog-0d0cb868d7139e60896a86262c255ff84292b210.tar.gz embedlog-0d0cb868d7139e60896a86262c255ff84292b210.tar.bz2 embedlog-0d0cb868d7139e60896a86262c255ff84292b210.zip |
makefile: don't build examples on make all
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | examples/Makefile.am | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 4f03867..d2ca1c4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -11,4 +11,7 @@ www: analyze: make analyze -C src -.PHONY: www +examples: + make examples -C examples + +.PHONY: examples www
\ No newline at end of file diff --git a/examples/Makefile.am b/examples/Makefile.am index 10032f0..98259f8 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,8 +1,13 @@ include $(top_srcdir)/embedlog-sources.mk -bin_PROGRAMS = print_to_file print_options print_simple print_memory +EXTRA_PROGRAMS = print_to_file print_options print_simple print_memory CFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src print_to_file_SOURCES = print-to-file.c $(embedlog_sources) print_options_SOURCES = print-options.c $(embedlog_sources) print_simple_SOURCES = print-simple.c $(embedlog_sources) print_memory_SOURCES = print-memory.c $(embedlog_sources) + +examples: $(EXTRA_PROGRAMS) + +clean-local: + rm -f $(EXTRA_PROGRAMS) |