Changeset da4bce3 for common


Ignore:
Timestamp:
11/17/2023 12:59:06 PM (10 months ago)
Author:
Pierre Labastie <pierre.labastie@…>
Branches:
ablfs-more, trunk
Children:
a9360e1
Parents:
d18fc24
Message:

Fix blfs tools Makefile now that MAKEFLAGS is set

Previously, the "update" target was just added to the end of
the "all" target prerequisites, so that it was run at the end.
But now, we enter make with some -j value in MAKEFLAGS, so that
the "update" target may well be run before the other targets, which
is wrong: for example if it is run before the "xxx-z-libxslt" target,
xsltproc is not found and the update target fails.
To fix, define "update" as the default target, and have it depend
on "all".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • common/libs/func_install_blfs

    rd18fc24 rda4bce3  
    219219# updating to the end of the process, adding an 'update' target
    220220sed -i -e '/xsltproc/,+6d' \
    221        -e '/^all/s@$@ update@' \
     221       -e '/^all/i update:' \
    222222       -e 's/touch/@touch/' Makefile
    223223cat >> Makefile << EOF
    224 update:
     224update: all
    225225        @echo Updating the tracking file
    226226        @for pack in \$\$(grep '<productname' ../$LFS_XML/tmp/lfs-full.xml | \\
Note: See TracChangeset for help on using the changeset viewer.