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)
18# Uncomment this to turn on verbose mode.
25# Handle noopt in DEB_BUILD_OPTIONS. Emulate CFLAGS (as HCFLAGS).
26ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
29# No optimisation seems optimum.
33# Export all variables which will be used in various stages of build process.
34export PREFIX DESTDIR DATADIR DOCDIR HCFLAGS
36configure: configure-stamp
44build-stamp: configure-stamp
53 rm -rf setup Setup.hi Setup.ho Setup.o .*config* dist html
54 rm -f build-stamp configure-stamp
66 # Remove empty directories, which lintian complains about.
67 find debian/libghc6-$(THIS)-dev -type d -name 'include' -empty -delete
68 # Hack! Cabal builds executables while building libraries. Move these
69 # files to top dir where the Makefile install target expects to find.
70 # See "BUGS" section at the following document:
71 # http://www.n-heptane.com/nhlab/repos/cabalDebianTemplate/INSTRUCTIONS.txt
72 find debian/libghc6-$(THIS)-dev -type d -name 'bin' -true | \
73 while read bin; do mv $$bin/* .; rm -rf $$bin; done
74 $(MAKE) install-program
76build-indep: build-indep-stamp
81install-indep: build-indep
89# Build architecture-independent files here.
90binary-indep: build-indep install-indep
93 dh_installchangelogs -i
107# Build architecture-dependent files here.
108binary-arch: build install
111 dh_installchangelogs -a
113 dh_installexamples -a
116 dh_strip -a -Xhtml2 -Xmarkdown2 -Xlatex2 -Xrst2
125binary: binary-indep binary-arch
126.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