Only main.c depends on defrc.h
This commit is contained in:
parent
88f25c0840
commit
691009407a
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
PROG= more
|
PROG= more
|
||||||
CFLAGS+=-I${.CURDIR} -I${.OBJDIR} -DTERMIOS
|
CFLAGS+=-I${.CURDIR} -I${.OBJDIR} -DTERMIOS
|
||||||
SRCS= ch.c command.c defrc.h help.c input.c line.c linenum.c macro.c main.c \
|
SRCS= ch.c command.c help.c input.c line.c linenum.c macro.c main.c \
|
||||||
ncommand.c option.c os.c output.c position.c prim.c screen.c signal.c \
|
ncommand.c option.c os.c output.c position.c prim.c screen.c signal.c \
|
||||||
tags.c ttyin.c
|
tags.c ttyin.c
|
||||||
DPADD= ${LIBTERMCAP}
|
DPADD= ${LIBTERMCAP}
|
||||||
@ -15,6 +15,8 @@ CLEANFILES+= defrc.h
|
|||||||
EXAMPDIR= /usr/share/examples/more
|
EXAMPDIR= /usr/share/examples/more
|
||||||
EXAMPLES= default.morerc less.morerc most.morerc
|
EXAMPLES= default.morerc less.morerc most.morerc
|
||||||
|
|
||||||
|
main.c: defrc.h
|
||||||
|
|
||||||
defrc.h: default.morerc
|
defrc.h: default.morerc
|
||||||
@echo '/* ${.TARGET:T} auto-generated from ${.ALLSRC:T} */' \
|
@echo '/* ${.TARGET:T} auto-generated from ${.ALLSRC:T} */' \
|
||||||
> ${.TARGET}
|
> ${.TARGET}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user