Code review comment for lp:~epics-core/epics-gateway/dbe_props

Revision history for this message
Ralph Lange (ralph-lange) wrote :

> I don't understand your comment in the Makefile about making stuff "go through
> common dir".

In EPICS 3.15, I can do

    %.db: ../%.db
        $(INSTALL) -m 644 $< .
    myTest.py: test.db

and the test database will be copied from .. to the O.<arch> where it is needed.

The EPICS 3.14 build system extensively uses VPATH, and the above simple rule does not work. Make creates circular dependencies (you experienced that, see your above comments) because .. being in the VPATH makes %.db equivalent to ../%.db - no matter how you try, make will never do the obvious.

The only ways out are either installing in a non-VPATH directory first, then into O.<arch> - that's what I meant by "making stuff go through common dir" - or renaming the files in-between (so that VPATH does not apply).

« Back to merge proposal