Commit 9d4ca568 authored by Jason Rhinelander's avatar Jason Rhinelander

Make eris-symlink deb use current build dir

Previously it was hard-coded to use `build`.
parent 72031ec7
......@@ -104,7 +104,7 @@ endforeach()
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_BINARY_DIR})
set(CMAKE_CXX_FLAGS "-std=c++14 -O2 -Wall -Wextra ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-std=c++14 -Wall -Wextra ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -DERIS_DEBUG")
find_package(Threads REQUIRED)
......
......@@ -29,7 +29,7 @@ if (dpkg_arch_result STREQUAL 0)
message(STATUS "Debian system detected; enabling eris-symlinks-deb target")
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/eris-symlinks DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
add_custom_target(eris-symlinks-deb
dpkg-buildpackage -uc -us -b
COMMAND ${CMAKE_COMMAND} -E env "ERIS_BUILD=${CMAKE_BINARY_DIR}" dpkg-buildpackage -uc -us -b
COMMAND mv ../eris-symlinks_0_${dpkg_arch}.deb ../..
DEPENDS eris api_doc
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/eris-symlinks
......
#!/usr/bin/make -f
ERIS_ROOT = $(realpath ../../..)
ERIS_BUILD := $(if $(ERIS_BUILD),$(ERIS_BUILD),$(ERIS_ROOT/build))
build:
mkdir -p usr/lib/$(DEB_TARGET_GNU_TYPE)/pkgconfig
mkdir -p usr/include/eris
ln -snf $(ERIS_ROOT)/build/liberis.so* usr/lib/$(DEB_TARGET_GNU_TYPE)
ln -snf $(ERIS_ROOT)/build/liberis.pc usr/lib/$(DEB_TARGET_GNU_TYPE)/pkgconfig
ln -snf $(ERIS_BUILD)/liberis.so* usr/lib/$(DEB_TARGET_GNU_TYPE)
ln -snf $(ERIS_BUILD)/liberis.pc usr/lib/$(DEB_TARGET_GNU_TYPE)/pkgconfig
ln -snf $(ERIS_ROOT)/eris/*/ usr/include/eris
ln -snf $(ERIS_ROOT)/eris/*.hpp usr/include/eris
ln -snf $(ERIS_ROOT)/build/eris/*.hpp usr/include/eris
ln -snf $(ERIS_BUILD)/eris/*.hpp usr/include/eris
mkdir -p usr/share/doc/eris-doc
ln -snf $(ERIS_ROOT)/build/doc/api usr/share/doc/eris-doc/html
ln -snf $(ERIS_BUILD)/doc/api usr/share/doc/eris-doc/html
%:
dh $@
......
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