File: rules

package info (click to toggle)
turtlefmt 0.1.2-4
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 304 kB
  • sloc: javascript: 68; makefile: 24; sh: 1
file content (36 lines) | stat: -rwxr-xr-x 923 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_CXXFLAGS_MAINT_APPEND  = -Wall -pedantic

# trust upstream optimization level unless explicitly disabled
ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
export DEB_CFLAGS_MAINT_STRIP=-O2
export DEB_CXXFLAGS_MAINT_STRIP=-O2
endif

# generate documentation unless nodoc requested
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
MANPAGES = turtlefmt.1
endif

TEST_NET = \
 test_w3c_files

%:
	dh $@ --buildsystem rust

override_dh_auto_test:
	dh_auto_test --buildsystem rust -- \
	 --no-fail-fast -- $(addprefix --skip ,$(TEST_NET))

execute_after_dh_auto_install: $(MANPAGES)

# build manpages
turtlefmt.1: %.1: debian/turtlefmt/usr/bin/%
	mkdir --parents $(dir $@)
	help2man --section 1 --no-info \
	 --name "command-line auto formatter for RDF Turtle" \
	 --output $@ $< \
	 || { $1 --help; false; }