File: rules

package info (click to toggle)
redland 1.0.17-1.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 8,780 kB
  • ctags: 4,263
  • sloc: ansic: 37,638; sh: 12,115; perl: 2,590; xml: 807; makefile: 587
file content (49 lines) | stat: -rwxr-xr-x 1,586 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/autoreconf.mk
include /usr/share/dpkg/buildflags.mk

# https://wiki.debian.org/HardeningWalkthrough#rules_files_based_on_cdbs
# export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# export DEB_CFLAGS_MAINT_APPEND = -Wall

DEB_INSTALL_DOCS_ALL=README NEWS AUTHORS NOTICE

DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)

DEB_CONFIGURE_USER_FLAGS= \
  --with-raptor=system \
  --with-rasqal=system \
  --with-threestore=no \
  --with-mysql=yes \
  --with-sqlite=yes \
  --with-postgresql=yes \
  --with-openssl-digests=no \
  --with-virtuoso=yes \
  --enable-release

# DEB_SHLIBDEPS_LIBRARY_librdf0 := librdf
# DEB_SHLIBDEPS_INCLUDE_librdf0 := debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)

DEB_MAKE_CLEAN_TARGET := 

clean::
	# raw distclean deletes the docs/html documentation
	if test -r Makefile; then \
	  mv docs/html docs/html.saved; \
	  $(MAKE) distclean; \
	  mv docs/html.saved docs/html; \
	fi
	rm -f docs/html/librdf.devhelp2
	rm -f config.log

build/librdf0-dev::
	cd docs/html && rm -f librdf.devhelp2 && ln -s redland.devhelp2 librdf.devhelp2

install/librdf0-dev::
	rm -f debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/redland/librdf_storage_*.a
	for lib in debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/librdf.la debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/redland/librdf_storage_*.la; do \
	  sed "/dependency_libs/ s/'.*'/''/" $$lib >> $$lib.new && mv $$lib.new $$lib; \
	done