Adapt BLFS/Makefile to the new book layout
With the change to python modules and the pythonhosted.xml file becoming untracked, those changes allow creating/updating this file.
This commit is contained in:
parent
951d334793
commit
5c8df43896
1 changed files with 14 additions and 5 deletions
|
@ -60,10 +60,15 @@ LFS-BRANCH = trunk
|
||||||
GIT = https://git.linuxfromscratch.org/blfs.git
|
GIT = https://git.linuxfromscratch.org/blfs.git
|
||||||
BLFS-BRANCH = trunk
|
BLFS-BRANCH = trunk
|
||||||
|
|
||||||
|
# Name of a file that is not tracked by git in BLFS_XML
|
||||||
|
# but has to be updated
|
||||||
|
PYHOSTED = general/prog/python-dependencies/pythonhosted.xml
|
||||||
|
|
||||||
ALLXML := $(filter-out $(RENDERTMP)/%, \
|
ALLXML := $(filter-out $(RENDERTMP)/%, \
|
||||||
|
$(filter-out $(BLFS_XML)/$(PYHOSTED), \
|
||||||
$(shell if [ -d $(BLFS_XML) ]; then \
|
$(shell if [ -d $(BLFS_XML) ]; then \
|
||||||
find $(BLFS_XML) -name \*.xml; \
|
find $(BLFS_XML) -name \*.xml; \
|
||||||
fi))
|
fi)))
|
||||||
ALLXMLLFS:= $(filter-out $(LFSTMP)/%, \
|
ALLXMLLFS:= $(filter-out $(LFSTMP)/%, \
|
||||||
$(shell if [ -d $(LFS_XML) ]; then \
|
$(shell if [ -d $(LFS_XML) ]; then \
|
||||||
find $(LFS_XML) -name \*.xml; \
|
find $(LFS_XML) -name \*.xml; \
|
||||||
|
@ -170,9 +175,13 @@ $(LFS_FULL): $(LFS_XML) $(LFS_XML)/general.ent $(ALLXMLLFS) $(ALLXSLLFS)
|
||||||
|
|
||||||
$(BLFS_FULL): $(BLFS_XML) $(BLFS_XML)/general.ent $(ALLXML) $(ALLXSL)
|
$(BLFS_FULL): $(BLFS_XML) $(BLFS_XML)/general.ent $(ALLXML) $(ALLXSL)
|
||||||
$(Q)cd $(BLFS_XML) && if [ -x git-version.sh ] ; then \
|
$(Q)cd $(BLFS_XML) && if [ -x git-version.sh ] ; then \
|
||||||
echo "Processing BLFS version..."; \
|
echo "Processing BLFS version..."; \
|
||||||
./git-version.sh $(REV); \
|
if grep -q PYHOSTED Makefile; then \
|
||||||
fi
|
$(MAKE) -C $(BLFS_XML) REV=$(REV) $(PYHOSTED); \
|
||||||
|
else \
|
||||||
|
./git-version.sh $(REV); \
|
||||||
|
fi; \
|
||||||
|
fi
|
||||||
$(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
|
$(Q)[ -d $(RENDERTMP) ] || mkdir -p $(RENDERTMP)
|
||||||
@echo "Adjusting BLFS for revision $(REV)..."
|
@echo "Adjusting BLFS for revision $(REV)..."
|
||||||
$(Q)xsltproc --nonet --xinclude \
|
$(Q)xsltproc --nonet --xinclude \
|
||||||
|
@ -230,4 +239,4 @@ clean:
|
||||||
rm -rf $(TOPDIR)/dependencies $(TOPDIR)/book-html $(TOPDIR)/scripts
|
rm -rf $(TOPDIR)/dependencies $(TOPDIR)/book-html $(TOPDIR)/scripts
|
||||||
|
|
||||||
FORCE:
|
FORCE:
|
||||||
.PHONY: clean all update $(CONFIG_OUT) version FORCE
|
.PHONY: clean all update $(CONFIG_OUT) FORCE
|
||||||
|
|
Reference in a new issue