- update default values, eliminate obsolete ones
[oweals/gnunet.git] / src / template / Makefile.am
index 47d6b41653f84c914e9b5d9e05ab6048d876ba23..4df4eb4845b6e90d6f70d840d135c9b67a0c744d 100644 (file)
@@ -1,4 +1,11 @@
-INCLUDES = -I$(top_srcdir)/src/include
+AM_CPPFLAGS = -I$(top_srcdir)/src/include
+
+pkgcfgdir= $(pkgdatadir)/config.d/
+
+libexecdir= $(pkglibdir)/libexec/
+
+dist_pkgcfg_DATA = \
+  template.conf
 
 if MINGW
  WINFLAGS = -Wl,--no-undefined -Wl,--export-all-symbols 
@@ -9,7 +16,9 @@ if USE_COVERAGE
 endif
 
 bin_PROGRAMS = \
- gnunet-template \
+ gnunet-template 
+
+libexec_PROGRAMS = \
  gnunet-service-template
 
 gnunet_template_SOURCES = \
@@ -28,7 +37,10 @@ gnunet_service_template_LDADD = \
 check_PROGRAMS = \
  test_template_api
 
+if ENABLE_TEST_RUN
+AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;
 TESTS = $(check_PROGRAMS)
+endif
 
 test_template_api_SOURCES = \
  test_template_api.c