On 2014/02/20 23:07, Brian Callahan wrote:
> >Apparently gmake doesn't honor ALL_TARGET on hppa. I tried also running
> >directly "gmake -f makefile depend s7 s7c" within WRKSRC or removing
> >ALL_TARGET from the port makefile and adding "all: depend s7 s7c" to
> >WRKSRC/makefile". Nothing worked. gmake doesn't run "depend".
> >
>
> Blah. That is pretty crappy. I really hope there's a better fix.
ALL_TARGET is just passed on the make command line, I see no reason at
all why that would fail to be honoured on hppa, I'd expect far more
failures than just this.
Is this instead a target dependency issue? If you do "make a b c" without
Makefile dependencies between them, I don't think there's any guarantee
that they will run in order.
> >+do-build:
> >+ cd ${WRKSRC} && \
> >+ ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE}
> >depend && \
> >+ ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} s7
> >&& \
> >+ ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} -f ${MAKE_FILE} s7c
Running the depend stage in pre-build and "s7 s7c" in ALL_TARGETS may work
and might be a bit nicer..