summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
-rw-r--r--configure.ac2
-rw-r--r--include/version.h.in (renamed from include/version.h)3
3 files changed, 3 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am
index 0c58441..70e1e2c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -24,7 +24,7 @@ builtin_libadd =
libexec_PROGRAMS = src/neard
src_neard_SOURCES = $(gdbus_sources) $(gweb_sources) $(builtin_sources) \
- src/main.c src/error.c src/near.h src/log.h src/log.c \
+ src/main.c src/error.c src/near.h src/log.c \
src/dbus.c src/manager.c src/adapter.c src/target.c \
src/tag.c src/plugin.c src/netlink.c
@@ -34,9 +34,6 @@ src_neard_LDFLAGS = -Wl,--export-dynamic
nodist_src_neard_SOURCES = src/builtin.h
-src/builtin.h: src/genbuiltin $(builtin_sources)
- $(AM_V_GEN)$(srcdir)/src/genbuiltin $(builtin_modules) > $@
-
AM_CFLAGS = @GLIB_CFLAGS@ @DBUS_CFLAGS@ @NETLINK_CFLAGS@ $(builtin_cflags) \
-DNEARD_PLUGIN_BUILTIN \
-DPLUGINDIR=\""$(plugindir)"\"
diff --git a/configure.ac b/configure.ac
index fe22d98..518b878 100644
--- a/configure.ac
+++ b/configure.ac
@@ -82,4 +82,4 @@ AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test],
[enable test/example scripts]), [enable_test=${enableval}])
AM_CONDITIONAL(TEST, test "${enable_test}" = "yes")
-AC_OUTPUT(Makefile)
+AC_OUTPUT(Makefile include/version.h)
diff --git a/include/version.h b/include/version.h.in
index 1f97731..2119dcc 100644
--- a/include/version.h
+++ b/include/version.h.in
@@ -26,11 +26,10 @@
extern "C" {
#endif
-#define NEAR_VERSION "0.1"
+#define NEAR_VERSION "@VERSION@"
#ifdef __cplusplus
}
#endif
#endif /* __NEAR_VERSION_H */
-