Skip to content

Commit

Permalink
make: fix posix warning ignoring prerequisites on suffix rule definition
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Dec 1, 2024
1 parent d55c082 commit a46be16
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -234,26 +234,26 @@ ifneq (${FPIC},)
@${CC} -c ${FPIC} ${CFLAGS} ${INCS} -o $@ $<
endif

.c.i: core/config.h
.c.i:
@${ECHO} CPP $@
@${CC} -c ${CFLAGS} ${INCS} -o $@ -E -c $<
.c.in: core/config.h
.c.in:
@${ECHO} CPP ASTYLE $@
@${CC} -c ${CFLAGS} ${INCS} -E -c $< | perl -pe's,^# (\d+) ",//# \1 ",' > $@.tmp && \
astyle -s2 < $@.tmp > $@
.c.o: core/config.h
.c.o:
@${ECHO} CC $@
@${CC} -c ${CFLAGS} ${INCS} -o $@ $<
ifneq (${FPIC},)
.c.${OPIC}: core/config.h
.c.${OPIC}:
@${ECHO} CC $@
@${CC} -c ${FPIC} ${CFLAGS} ${INCS} -o $@ $<
endif

%.c: %.y ${GREGCROSS}
@${ECHO} GREG $@
@${GREGCROSS} $< > $@-new && ${MV} $@-new $@
.y.c: ${GREGCROSS}
.y.c:
@${ECHO} GREG $@
@${GREGCROSS} $< > $@-new && ${MV} $@-new $@

Expand Down

0 comments on commit a46be16

Please sign in to comment.