@@ -1,7 +1,14 @@
ACLOCAL_AMFLAGS=-I m4
AUTOMAKE_OPTIONS = foreign
-SUBDIRS = doc platform example test helper scripts
+#@with_platform@ works alone in subdir but not as part of a path???
+SUBDIRS = @platform_with_platform@ \
+ test \
+ @platform_with_platform_test@ \
+ helper \
+ doc \
+ example \
+ scripts
include $(top_srcdir)/aminclude.am
@@ -76,6 +76,8 @@ AC_ARG_WITH([platform],
])
AC_SUBST([with_platform])
+AC_SUBST([platform_with_platform], ["platform/${with_platform}"])
+AC_SUBST([platform_with_platform_test], ["platform/${with_platform}/test"])
if test "${with_platform}" == "linux-generic";
then
@@ -294,7 +296,6 @@ AC_CONFIG_FILES([Makefile
helper/Makefile
helper/test/Makefile
pkgconfig/libodp.pc
- platform/Makefile
platform/linux-generic/Makefile
scripts/Makefile
test/Makefile
deleted file mode 100644
@@ -1 +0,0 @@
-SUBDIRS = @with_platform@
@@ -5,8 +5,6 @@ AM_CFLAGS += -I$(srcdir)/include
AM_CFLAGS += -I$(top_srcdir)/include
AM_CFLAGS += -I$(top_srcdir)/helper/include
-SUBDIRS = test
-
include_HEADERS = \
$(top_srcdir)/include/odp.h