git.iko.soy/typeable/pandoc
on master help sign in
Makefile:

- New variables to make use in debian/rules: DATADIR, DOCDIR. Cabal uses $prefix/pandoc-$VERSION/doc for the documentation files, where as the Debian package uses $prefix/doc/pandoc. We need these variables to resolve the conflict. debian/rules: - Set and export DATADIR, DOCDIR which controls the installation of document files at install-program target. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1045 788f1e2b-df1e-0410-8736-df70ead52e1b

commit175ddc3f6e6fec97ffe51b943c02079818be8721 authorroktas <roktas@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 7 Oct 2007, 21:43 (19 years ago) parentea0d566
2 files changed+8−4
Makefile+5−3 debian/rules+3−1
Makefile+5−3
@@ -46,6 +46,8 @@ destdir :=
4646# Fallback to defaults but allow to get the values from environment.
4747PREFIX ?= $(prefix)
4848DESTDIR ?= $(destdir)
49+DATADIR ?= $(PKGID)
50+DOCDIR ?= $(PKGID)/doc
4951
5052#-------------------------------------------------------------------------------
5153# Installation paths
@@ -54,8 +56,8 @@ DESTPATH := $(DESTDIR)$(PREFIX)
5456BINPATH := $(DESTPATH)/bin
5557DATAPATH := $(DESTPATH)/share
5658MANPATH := $(DATAPATH)/man
57−PKGDATAPATH := $(DATAPATH)/$(PKGID)
58−PKGDOCPATH := $(PKGDATAPATH)/doc
59+PKGDATAPATH := $(DATAPATH)/$(DATADIR)
60+PKGDOCPATH := $(DATAPATH)/$(DOCDIR)
5961
6062#-------------------------------------------------------------------------------
6163# Generic Makefile variables
@@ -190,7 +192,7 @@ uninstall-program: uninstall-exec uninstall-doc
190192
191193.PHONY: install-all uninstall-all
192194# Full installation through Cabal: main + wrappers + user docs + lib + lib docs
193−install-all: install-program
195+install-all: build-all install-program
194196 destdir=$(DESTDIR); \
195197 # Older Cabal versions have no '--destdir' option.
196198 if $(BUILDCMD) copy --help | grep -q '\-\-destdir'; then \
debian/rules+3−1
@@ -12,6 +12,8 @@
1212THIS := $(shell sed -ne 's/^Source: \(.*\)/\1/p' debian/control)
1313PREFIX := /usr
1414DESTDIR := debian/$(THIS)
15+DATADIR := $(THIS)
16+DOCDIR := doc/$(THIS)
1517
1618# Uncomment this to turn on verbose mode.
1719#export DH_VERBOSE=1
@@ -29,7 +31,7 @@ HCFLAGS+=-O0
2931endif
3032
3133# Export all variables which will be used in various stages of build process.
32−export PREFIX DESTDIR HCFLAGS
34+export PREFIX DESTDIR DATADIR DOCDIR HCFLAGS
3335
3436configure: configure-stamp
3537configure-stamp: