Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for modular build structure. #25

Merged
merged 8 commits into from
Aug 19, 2024
Merged
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions build.jam
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright René Ferdinand Rivera Morell 2024
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)

require-b2 5.2 ;

import option ;
import path ;

local DIST_DIR = [ option.get distdir ] ;
DIST_DIR ?= [ option.get build-dir ] ;
DIST_DIR ?= [ path.join $(BOOST_ROOT) dist ] ;
DIST_DIR ?= dist ;
DIST_DIR = [ path.root [ path.make $(DIST_DIR) ] [ path.pwd ] ] ;

project /boost/boostbook ;

local patterns = *.dtd *.xml *.xsl LICENSE ;
local dirs = dtd xsl ;

explicit
[ install dist-share
: [ glob $(dirs)/$(patterns) $(dirs)/*/$(patterns)
$(dirs)/*/*/$(patterns) ]
grafikrobot marked this conversation as resolved.
Show resolved Hide resolved
: <location>$(DIST_DIR)/share <install-source-root>. ]
[ alias boostbook ]
[ alias all : boostbook dist-share ]
;

# Install distribution files/execs by default.
alias dist : dist-share ;