Page MenuHomeDevCentral

rOPS Makefile can't regenerate repo target
Open, Needs TriagePublic

Description

Makefile
#   -------------------------------------------------------------
#   Build targets - repository
#   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

repo: roles/webserver-content/init.sls

roles/webserver-content/init.sls:
        tmpfile=`mktemp /tmp/make-rOPS-generate-webcontent-index.XXXXXX` ; \
        utils/generate-webcontent-index.py > "$$tmpfile" ;\
        ${MV} "$$tmpfile" roles/webserver-content/init.sls

clean-repo:
        ${RM} roles/webserver-content/init.sls

The target roles/webserver-content/init.sls calls utils/generate-webcontent-index.py.
But utils/generate-webcontent-index.py update in-place roles/webserver-content/init.sls and can work when the file doesn't exist.

So:

  • we can't clean and regenerate
  • it will ignore make repo too, as the target already exists.

Related Objects

Event Timeline

dereckson renamed this task from rOPS Makefile can't regenerate repo target as the script needs the file to exist to rOPS Makefile can't regenerate repo target.Feb 26 2022, 22:44
dereckson updated the task description. (Show Details)
dereckson moved this task from Backlog to Next on the User-Dereckson board.
dereckson moved this task from Backlog to Bug and issues on the Salt board.