blob: 84ee7ab899c155f6f46514c94d9de70127d6d6a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
include ../config.mk
TARGETS = ${shell echo *.c}
OBJECTS = ${TARGETS:.c=.o}
I_SRCS = ${shell echo *.raw}
I_DSTS = ${I_SRCS:.raw=.inc}
feh: deps.mk ${OBJECTS} ${I_DSTS}
${CC} ${LDFLAGS} ${CFLAGS} -o $@ ${OBJECTS} ${LDLIBS}
include deps.mk
.raw.inc:
sed 's/^\(.*\)$$/"\1\\n"/' < ${@:.inc=.raw} > $@
fehrc.inc: fehrc.raw
help.inc: help.raw
deps.mk: ${TARGETS} ${I_DSTS}
${CC} -MM ${TARGETS} > $@
clean:
rm -f feh *.o *.inc
.PHONY: clean
.SUFFIXES: .inc .raw
|