summaryrefslogtreecommitdiff
path: root/Makefile
blob: 5aba8fb619d6c1324b9f2831343850ef63838311 (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 and ff
# See LICENSE file for copyright and license details

include config.mk

SRC = png2ff.c ff2png.c

all: png2ff ff2png

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

clean:
	rm -f png2ff ff2png

install:
	@echo installing into ${DESTDIR}${PREFIX}/bin
	@mkdir -p ${DESTDIR}${PREFIX}/bin
	@cp -f png2ff ff2png ${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