blob: 0e2c54321e330c43a964d8337faa07df07ea2643 (
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} ${CPPFLAGS} -MM ${TARGETS} > $@
clean:
rm -f feh *.o *.inc
.PHONY: clean
.SUFFIXES: .inc .raw
|