File: rules

package info (click to toggle)
nim-kexpr 0.0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 188 kB
  • sloc: ansic: 522; makefile: 17; sh: 15
file content (20 lines) | stat: -rwxr-xr-x 378 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
#!/usr/bin/make -f
export DH_VERBOSE = 1

NIMCACHE=$(CURDIR)/nimcache

%:
	dh $@

override_dh_auto_build:
	# fails in cowbuilder
	#nim doc --nimcache:$(NIMCACHE) kexpr.nim

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf $(NIMCACHE)
	rm -f kexpr.out nimdoc.out.css tests kexpr.html