ede/ede-help/Jamfile

46 lines
1.0 KiB
Plaintext

#
# $Id$
#
# Part of Equinox Desktop Environment (EDE).
# Copyright (c) 2008 EDE Authors.
#
# This program is licensed under the terms of the
# GNU General Public License version 2 or later.
# See COPYING for the details.
SubDir TOP ede-help ;
rule MakeScript
{
# add grist to file names (not needed, but you never know...)
local source = [ FGristFiles $(>) ] ;
# let jam call from the top directory (jam ede-help) knows what to
# build and not be confused with the same name of directory
SEARCH on $(source) = $(SUBDIR) ;
LocalDepends $(<) : $(source) ;
LocalDepends all : $(<) ;
LocalClean clean : $(<) ;
# where generated target will be located
MakeLocate $(<) : $(LOCATE_TARGET) ;
MakeScript1 $(<) : $(source) ;
# let it be installed on 'jam install'
InstallEdeProgram $(<) ;
# make it executable
MODE on $(<) = $(EXEMODE) ;
Chmod $(<) ;
}
actions existing MakeScript1
{
cat "$(>)" | $(SED) -e 's|@ededocdir@|$(EDE_DOC_DIR)|' > "$(<)"
}
MakeScript ede-help : ede-help.in ;
EdeManual ede-help.txt ;