File: rules

package info (click to toggle)
nim-docopt 0.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 176 kB
  • sloc: sh: 23; makefile: 13
file content (17 lines) | stat: -rwxr-xr-x 439 bytes parent folder | download | duplicates (2)
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