File: rules

package info (click to toggle)
libxeddsa 2.0.0%2B20221109.06a02c8-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,092 kB
  • sloc: ansic: 5,683; makefile: 22; python: 19; javascript: 15
file content (17 lines) | stat: -rwxr-xr-x 611 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

%:
	dh $@ --buildsystem=cmake --with sphinxdoc

execute_after_dh_auto_build:
	( cd bin/dynamic/; \
          mv libxeddsa.so libxeddsa.so.${DEB_VERSION_UPSTREAM}; \
	  MAJOR=$$(echo ${DEB_VERSION_UPSTREAM} | sed 's/\..*//'); \
          patchelf --set-soname libxeddsa.so.$${MAJOR} libxeddsa.so.${DEB_VERSION_UPSTREAM}; \
	  ln -s libxeddsa.so.${DEB_VERSION_UPSTREAM} libxeddsa.so.$${MAJOR}; \
	  ln -s libxeddsa.so.${DEB_VERSION_UPSTREAM} libxeddsa.so )
	cd docs && $(MAKE) html

override_dh_dwz: # override dwz as it breaks on shlibs edited by patchelf