Commit a0a1e646 authored by Adrien Oliva's avatar Adrien Oliva

build(version): Update version in library

Use version in library definition
Fix share/ installation path
Signed-off-by: Adrien Oliva's avatarAdrien Oliva <olivaa+gitlab@yapbreak.fr>
parent a5e307e4
......@@ -135,4 +135,5 @@ ALLPHONY += upload
.PHONY: $(ALLPHONY)
datadir = $(prefix)/share/@PACKAGE_NAME@/examples
dist_data_DATA = examples/simple.cpp
AM_CFLAGS = -std=c11 -Wall -Wextra ${extra_CFLAGS}
AM_CXXFLAGS = -std=c++11 -Wall -Wextra ${extra_CXXFLAGS}
AM_LDFLAGS = ${extra_LDFLAGS}
LIBVERSION = -version-info ${VERSION_CURRENT}:${VERSION_REVISION}:${VERSION_AGE}
AM_CFLAGS += -I$(top_srcdir)/src
AM_CFLAGS += -I$(top_srcdir)/
......
......@@ -16,4 +16,5 @@ doc:
@(echo "Please install doxygen to get actual documentation")
endif
datadir = $(prefix)/share/@PACKAGE_NAME@/doc
dist_data_DATA = img/button.png
......@@ -5,6 +5,7 @@ include $(top_srcdir)/Makefile.common
lib_LTLIBRARIES = libbutton.la
libbutton_la_SOURCES = button.h
libbutton_la_SOURCES += button.cpp
libbutton_la_LDFLAGS = $(LIBVERSION)
include_HEADERS = button.h
libdir = $(prefix)/lib/yapiot/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment