summaryrefslogtreecommitdiff
path: root/Makefile
blob: f54f7b47648a933ae5a0cee49f67e7a2997de393 (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
# farbfeld - tools to convert between png/jpg and ff
# See LICENSE file for copyright and license details

include config.mk

SRC = png2ff.c ff2png.c jpg2ff.c

all: png2ff ff2png jpg2ff

.c:
	@echo CC $<
	@${CC} -o $@ ${CFLAGS} ${LIBS} ${LDFLAGS} $<

clean:
	rm -f png2ff ff2png jpg2ff

install:
	@echo installing into ${DESTDIR}${PREFIX}/bin
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@cp -f jpg2ff png2ff ff2png 2ff ${DESTDIR}${PREFIX}/bin

uninstall:
	@echo removing from ${DESTDIR}${PREFIX}/bin
	@rm -f ${DESTDIR}${PREFIX}/bin/png2ff
	@rm -f ${DESTDIR}${PREFIX}/bin/ff2png

.PHONY: all clean install uninstall