1
# debian-vars.mk -- Common variables
5
# Copyright (C) 2005-2009 Jari Aalto <jari.aalto@cante.net>
9
# This program is free software; you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 2 of the License, or
12
# (at your option) any later version.
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program. If not, see <http://www.gnu.org/licenses/>.
24
# This is GNU makefile part, that defines common variables and
25
# macros to be used from debian/rules. To install, add this:
28
# include debian/debian-vars.mk
31
This makefile requires GNU Make.
35
PIXPACKAGE ?= $(PACKAGE)
36
TOPDIR := $(shell pwd)
37
PKGDIR = $(shell pwd)/debian/$(PACKAGE)
39
SHAREROOTDIR = $(PKGDIR)/usr/share
40
SHAREDIR = $(SHAREROOTDIR)/$(PACKAGE)
41
DOCROOTDIR = $(SHAREROOTDIR)/doc
42
PKGDOCDIR = $(DOCROOTDIR)/$(PACKAGE)
43
SITELISPDIR = $(SHAREROOTDIR)/emacs/site-lisp
44
PKGLISPDIR = $(SITELISPDIR)/$(PACKAGE)
45
DESKTOPDIR = $(SHAREROOTDIR)/applications
46
XSESSIONDIR = $(SHAREROOTDIR)/xsessions
47
LOCALEDIR = $(SHAREROOTDIR)/locale
48
INFODIR = $(SHAREROOTDIR)/info
49
PIXDIR = $(SHAREROOTDIR)/pixmaps
50
PKGPIXDIR = $(SHAREROOTDIR)/pixmaps/$(PIXPACKAGE)
52
MANROOTDIR = $(SHAREROOTDIR)/man
53
MAN1DIR = $(MANROOTDIR)/man1
54
MAN5DIR = $(MANROOTDIR)/man5
55
MAN7DIR = $(MANROOTDIR)/man7
56
MAN8DIR = $(MANROOTDIR)/man8
58
LIBROOTDIR = $(PKGDIR)/usr/lib
59
LIBDIR = $(LIBROOTDIR)/$(PACKAGE)
60
LIBPERLDIR = $(LIBROOTDIR)/perl
62
BINDIR = $(PKGDIR)/usr/bin
63
SBINDIR = $(PKGDIR)/usr/sbin
64
GAMEBINDIR = $(PKGDIR)/usr/games
66
INSTALL ?= /usr/bin/install
67
INSTALL_DIR = $(INSTALL) -m 755 -d
68
INSTALL_DATA = $(INSTALL) -p -m 644
70
# The difference is that "BIN" may contain binary strip option
71
INSTALL_SCRIPT = $(INSTALL) -p -m 755
72
INSTALL_BIN = $(INSTALL) -p -m 755
74
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
78
# End of Makefile part