File: rules

package info (click to toggle)
nim-d3 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 288 kB
  • sloc: makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 747 bytes parent folder | download
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
#!/usr/bin/make -f
export DH_VERBOSE = 1

%:
	dh $@

NIMCACHE=$(CURDIR)/tests/nimcache

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	nim c --nimcache:$(NIMCACHE) tests/test1.nim
endif

override_dh_installexamples:
#	Additional packages are required that are beyond the scope of this package
#	see debian/TODO
	echo "I: Not installing examples until these are functional within Debian"

override_dh_installdocs:
	# nim has path problem, needs to wait for nim update
	#nim doc --project --index:on --outdir:docs src/d3.nim
	#nim buildIndex -o:docs/theindex.html docs
	dh_installdocs

override_dh_auto_clean:
	dh_auto_clean
	rm -rf docs
	find examples -type f -a -executable | xargs -r rm -f
	rm -rf $(NIMCACHE) tests/test1