File: rules

package info (click to toggle)
nim-docopt 0.6.8-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 164 kB
  • sloc: sh: 26; makefile: 13
file content (17 lines) | stat: -rwxr-xr-x 439 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
export DH_VERBOSE = 1

%:
	dh $@

NIMCACHE=$(CURDIR)/tests/nimcache
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	nim c -p=/usr/share/nimble/unicodedb/ -p=/usr/share/nimble/unicodeplus/ -p=/usr/share/nimble/regex/ --nimcache:$(NIMCACHE) test/test.nim
	./test/test
endif

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