@@ -1,12 +1,14 @@
# This Makefile.am is in the public domain
+examples_DIR = examples2
+
+SUBDIRS = . incl_priv include mhd2
if BUILD_EXAMPLES
-examplesdirs = examples examples2
-else
-examplesdirs =
+SUBDIRS += $(examples_DIR)
endif
-SUBDIRS = incl_priv include mhd2 $(examplesdirs) tests .
+SUBDIRS += tests
if RUN_LIBCURL_TESTS
#SUBDIRS += testcurl
@@ -25,8 +25,4 @@ $(top_builddir)/src/mhd2/libmicrohttpd2.la: $(top_builddir)/src/mhd2/Makefile
# example programs
-noinst_PROGRAMS = \
- minimal_example2
-
-minimal_example2_SOURCES = \
- minimal_example2.c
+noinst_PROGRAMS =
@@ -26,7 +26,5 @@ $(top_builddir)/src/mhd2/libmicrohttpd2.la: $(top_builddir)/src/mhd2/Makefile
noinst_PROGRAMS = \
- demo
-demo_SOURCES = \
- demo.c
+ demo \
+ minimal_example2