| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export LC_ALL=C.UTF-8 |
| 4 |
|
| 5 |
override_dh_auto_clean: |
| 6 |
rm -rf $(CURDIR)/_build/ |
| 7 |
rm -rf $(CURDIR)/doc/_build/ |
| 8 |
rm -rf $(CURDIR)/doc/html/ |
| 9 |
rm -f $(CURDIR)/GenerateEverything \ |
| 10 |
$(CURDIR)/GenerateEverything.hi \ |
| 11 |
$(CURDIR)/GenerateEverything.o \ |
| 12 |
$(CURDIR)/doc/Everything.agda \ |
| 13 |
$(CURDIR)/doc/EverythingSafe.agda |
| 14 |
dh_auto_clean |
| 15 |
|
| 16 |
override_dh_auto_build: |
| 17 |
ghc --make GenerateEverything.hs |
| 18 |
./GenerateEverything --include-deprecated --out-dir doc |
| 19 |
cd $(CURDIR)/doc && agda +RTS -K1G -RTS Everything.agda |
| 20 |
cd $(CURDIR)/doc && agda --html README.agda |
| 21 |
|
| 22 |
# Don't use upstream's 'make install' |
| 23 |
override_dh_auto_install: |
| 24 |
|
| 25 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 26 |
override_dh_auto_test: |
| 27 |
cd $(CURDIR)/doc && agda README.agda |
| 28 |
endif |
| 29 |
|
| 30 |
%: |
| 31 |
dh $@ |