3# debian/rules for pandoc.
4# Copyright © 2006 Recai Oktaş <roktasATdebian.org>
6# This file is based on John Goerzen's Cabal Debian template.
7# See http://www.n-heptane.com/nhlab/repos/cabalDebianTemplate/
9# Licensed under the GNU General Public License, version 2.
10# See the file 'http://www.gnu.org/copyleft/gpl.txt'.
12THIS := $(shell sed -ne 's/^Source: \(.*\)/\1/p' debian/control)
14DESTDIR := debian/$(THIS)
16# Uncomment this to turn on verbose mode.
23# Handle noopt in DEB_BUILD_OPTIONS. Emulate CFLAGS (as HCFLAGS).
24ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
27# No optimisation seems optimum.
31# Export all variables which will be used in various stages of build process.
32export PREFIX DESTDIR HCFLAGS
34configure: configure-stamp
42build-stamp: configure-stamp
51 rm -rf setup Setup.hi Setup.ho Setup.o .*config* dist html
52 rm -f build-stamp configure-stamp
64 # Hack! Cabal builds executables while building libraries. Move these
65 # files to top dir where the Makefile install target expects to find.
66 # See "BUGS" section at the following document:
67 # http://www.n-heptane.com/nhlab/repos/cabalDebianTemplate/INSTRUCTIONS.txt
68 find debian/libghc6-$(THIS)-dev -type d -name 'bin' -true | \
69 while read bin; do mv $$bin/* .; rm -rf $$bin; done
70 $(MAKE) install-program
72build-indep: build-indep-stamp
77install-indep: build-indep
85# Build architecture-independent files here.
86binary-indep: build-indep install-indep
89 dh_installchangelogs -i
103# Build architecture-dependent files here.
104binary-arch: build install
107 dh_installchangelogs -a
109 dh_installexamples -a
112 dh_strip -a -Xhtml2 -Xmarkdown2 -Xlatex2
121binary: binary-indep binary-arch
122.PHONY: build clean binary-indep binary-arch binary install build-indep install-indep
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list