summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--common.mk4
-rwxr-xr-xtool/update-deps1
-rw-r--r--yarp/version.h4
4 files changed, 6 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 631a489eef..cb7c533bac 100644
--- a/.gitignore
+++ b/.gitignore
@@ -265,3 +265,4 @@ lcov*.info
/yarp/prettyprint.c
/yarp/serialize.c
/yarp/token_type.c
+/yarp/version.h
diff --git a/common.mk b/common.mk
index a05f0ddda9..627a5b954a 100644
--- a/common.mk
+++ b/common.mk
@@ -225,6 +225,10 @@ srcs: yarp/ast.h
yarp/ast.h: $(srcdir)/yarp/templates/template.rb $(srcdir)/yarp/templates/include/yarp/ast.h.erb
$(Q) $(BASERUBY) $(srcdir)/yarp/templates/template.rb include/yarp/ast.h $@
+srcs: yarp/version.h
+yarp/version.h: $(srcdir)/yarp/templates/template.rb $(srcdir)/yarp/templates/include/yarp/version.h.erb
+ $(Q) $(BASERUBY) $(srcdir)/yarp/templates/template.rb include/yarp/version.h $@
+
srcs: yarp/node.c
yarp/node.c: $(srcdir)/yarp/templates/template.rb $(srcdir)/yarp/templates/src/node.c.erb
$(Q) $(BASERUBY) $(srcdir)/yarp/templates/template.rb src/node.c $@
diff --git a/tool/update-deps b/tool/update-deps
index 5662188dee..90107e50c8 100755
--- a/tool/update-deps
+++ b/tool/update-deps
@@ -156,6 +156,7 @@ FILES_NEED_VPATH = %w[
yarp/prettyprint.c
yarp/serialize.c
yarp/token_type.c
+ yarp/version.h
]
# Multiple files with same filename.
diff --git a/yarp/version.h b/yarp/version.h
deleted file mode 100644
index 179543f54d..0000000000
--- a/yarp/version.h
+++ /dev/null
@@ -1,4 +0,0 @@
-#define YP_VERSION_MAJOR 0
-#define YP_VERSION_MINOR 8
-#define YP_VERSION_PATCH 0
-#define YP_VERSION "0.8.0"