aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/build-data/makefile/header.in8
-rwxr-xr-xsrc/scripts/install.py10
2 files changed, 5 insertions, 13 deletions
diff --git a/src/build-data/makefile/header.in b/src/build-data/makefile/header.in
index 970f75da4..d01b8a28a 100644
--- a/src/build-data/makefile/header.in
+++ b/src/build-data/makefile/header.in
@@ -24,14 +24,6 @@ BRANCH = %{version_major}.%{version_minor}
LIBNAME = %{lib_prefix}botan-%{version_major}.%{version_minor}
-# Installation Settings
-DESTDIR = %{destdir}
-BINDIR = $(DESTDIR)/bin
-LIBDIR = $(DESTDIR)/%{libdir}
-HEADERDIR = $(DESTDIR)/%{includedir}/botan-$(BRANCH)/botan
-DOCDIR = $(DESTDIR)/%{docdir}/botan-$(VERSION)
-PKGCONF_DIR = $(LIBDIR)/pkgconfig
-
# Executable targets
APP = %{out_dir}/botan%{program_suffix}
TEST = %{out_dir}/botan-test%{program_suffix}
diff --git a/src/scripts/install.py b/src/scripts/install.py
index daa4a928e..5b6be7ce4 100755
--- a/src/scripts/install.py
+++ b/src/scripts/install.py
@@ -18,7 +18,7 @@ import sys
if 'dont_write_bytecode' in sys.__dict__:
sys.dont_write_bytecode = True
-from botan_version import release_major, release_minor
+from botan_version import release_major, release_minor, release_patch
import combine_relnotes
def parse_command_line(args):
@@ -52,9 +52,9 @@ def parse_command_line(args):
install_group.add_option('--versioned-include-dir', metavar='SUFFIX_DIR',
default='botan-%d.%d' % (release_major, release_minor),
help='Name of versioned include dir')
- install_group.add_option('--doc-dir-suffix', metavar='SUFFIX',
- default='-%d.%d' % (release_major, release_minor),
- help='Set optional suffix on doc dir (default %default)')
+ install_group.add_option('--doc-dir-suffix', metavar='V',
+ default='-%d.%d.%d' % (release_major, release_minor, release_patch),
+ help='Set optional suffix on doc dir (default \'%default\')')
install_group.add_option('--umask', metavar='MASK', default='022',
help='Umask to set (default %default)')
@@ -194,7 +194,7 @@ def main(args = None):
os.path.join(bin_dir, os.path.basename(build_vars['botan_config'])))
if 'botan_pkgconfig' in build_vars:
- pkgconfig_dir = os.path.join(options.destdir, options.pkgconfigdir)
+ pkgconfig_dir = os.path.join(options.destdir, options.libdir, options.pkgconfigdir)
makedirs(pkgconfig_dir)
shutil.copyfile(build_vars['botan_pkgconfig'],
os.path.join(pkgconfig_dir, os.path.basename(build_vars['botan_pkgconfig'])))