File: rules

package info (click to toggle)
agda-stdlib 2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,196 kB
  • sloc: haskell: 375; makefile: 32; sh: 28; lisp: 1
file content (31 lines) | stat: -rwxr-xr-x 754 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
30
31
#!/usr/bin/make -f

export LC_ALL=C.UTF-8

override_dh_auto_clean:
	rm -rf $(CURDIR)/_build/
	rm -rf $(CURDIR)/doc/_build/
	rm -rf $(CURDIR)/doc/html/
	rm -f $(CURDIR)/GenerateEverything \
		$(CURDIR)/GenerateEverything.hi \
		$(CURDIR)/GenerateEverything.o \
		$(CURDIR)/doc/Everything.agda \
		$(CURDIR)/doc/EverythingSafe.agda
	dh_auto_clean

override_dh_auto_build:
	ghc --make GenerateEverything.hs
	./GenerateEverything --include-deprecated --out-dir doc
	cd $(CURDIR)/doc && agda +RTS -K1G -RTS Everything.agda
	cd $(CURDIR)/doc && agda --html README.agda

# Don't use upstream's 'make install'
override_dh_auto_install:

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
	cd $(CURDIR)/doc && agda README.agda
endif

%:
	dh $@