mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-15 03:53:32 +01:00
defs.mk, rules.mk: Streamlined DOC handling
This commit is contained in:
parent
a4b71dc727
commit
951de3fa8a
2 changed files with 7 additions and 9 deletions
12
make/defs.mk
12
make/defs.mk
|
|
@ -188,13 +188,15 @@ INSTALL_HDRDIR ?= $(PREFIX)/include
|
|||
INSTALLED_HDR += $(addprefix $(INSTALL_HDRDIR)/,$(SRC_H))
|
||||
|
||||
# -- DOC
|
||||
# TODO: VERSION file is omnipresent
|
||||
BUILD_DOCDIR ?= $(TOPDIR)/doc
|
||||
DOCS += $(wildcard VERSION README CHANGES TODO LICENSE AUTHORS CREDITS *.pdf *.txt *.html)
|
||||
DOCSUBDIRS += $(wildcard html tex info examples src)
|
||||
INSTALLED_VERSION_FILE = $(PREFIX)/VERSION
|
||||
INSTALL_DOCDIR = $(DOC_PREFIX)
|
||||
INSTALLED_DOCS = $(addprefix $(INSTALL_DOCDIR)/,$(DOCS)) $(INSTALLED_VERSION_FILE)
|
||||
|
||||
BUILD_DOCDIR ?= $(TOPDIR)/doc
|
||||
BUILD_DOC ?= $(DOC_PREFIX)
|
||||
# TODO: use INSTALL_DOCDIR ?= $(DOC_PREFIX) which currently would break
|
||||
# <MODULE>_VERSION below
|
||||
INSTALL_DOCDIR ?= $(PREFIX)
|
||||
INSTALLED_DOC ?= $(addprefix $(INSTALL_DOCDIR)/,$(DOCS))
|
||||
|
||||
# -- LIB
|
||||
BUILD_LIBDIR = $(TOPDIR)/lib
|
||||
|
|
|
|||
|
|
@ -293,10 +293,6 @@ $(INSTALLED_PROFILE_PATH_SCRIPT): $(TOPDIR)/profiledir.done
|
|||
echo "else PATH=\$$PATH:$(shell echo $(INSTALL_EXEDIR) | sed -e s%^$(ENV_PREFIX)/%/%); fi" >> path_script.sh
|
||||
$(INSTALL) -o $(PROFILEOWNER) -g $(PROFILEGROUP) -m $(PROFILEMODE) path_script.sh $@
|
||||
|
||||
$(INSTALLED_VERSION_FILE):
|
||||
$(INSTALL) -o $(DOCOWNER) -g $(DOCGROUP) -m $(DOCMODE) $(TOPDIR)/VERSION $@
|
||||
echo $(DIST_VERSION) > $@
|
||||
|
||||
$(SYSCONFIG_DIR)/%: %
|
||||
$(INSTALL) -o $(CFGOWNER) -g $(CFGGROUP) -m $(CFGMODE) $< $@
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue