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 12:16:44 +0100 |
commit | e4b0b3882fd4caacc35f9af50129d5ba6689bfb9 (patch) | |
tree | 4a69f9969188f618321df8fc96c7fdae32009ce6 | |
parent | fc1088d51ba61c3da03018d0d7cac342d323baa6 (diff) | |
download | embedlog-e4b0b3882fd4caacc35f9af50129d5ba6689bfb9.tar.gz embedlog-e4b0b3882fd4caacc35f9af50129d5ba6689bfb9.tar.bz2 embedlog-e4b0b3882fd4caacc35f9af50129d5ba6689bfb9.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 29be2cf..4c79485 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 c5e8b83..f3ca3e4 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -1,5 +1,5 @@ include $(top_srcdir)/embedlog-sources.mk -bin_PROGRAMS = print_to_file print_options print_simple print_memory print_tty +EXTRA_PROGRAMS = print_to_file print_options print_simple print_memory print_tty CFLAGS += -I$(top_srcdir)/include -I$(top_srcdir)/src print_to_file_SOURCES = print-to-file.c $(embedlog_sources) @@ -7,3 +7,8 @@ print_options_SOURCES = print-options.c $(embedlog_sources) print_simple_SOURCES = print-simple.c $(embedlog_sources) print_memory_SOURCES = print-memory.c $(embedlog_sources) print_tty_SOURCES = print-tty.c $(embedlog_sources) + +examples: $(EXTRA_PROGRAMS) + +clean-local: + rm -f $(EXTRA_PROGRAMS) |