File: Makefile

package info (click to toggle)
feh 2.18-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,512 kB
  • ctags: 1,197
  • sloc: ansic: 12,905; perl: 1,145; makefile: 182; sh: 43
file content (25 lines) | stat: -rw-r--r-- 419 bytes parent folder | download
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
include ../config.mk

TARGETS = $(sort ${shell echo *.c})
OBJECTS = ${TARGETS:.c=.o}

I_SRCS = $(sort ${shell echo *.raw})
I_DSTS = ${I_SRCS:.raw=.inc}

feh: ${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

clean:
	rm -f feh *.o *.inc

.PHONY: clean

.SUFFIXES: .inc .raw