farbfeld

suckless image format with conversion tools
git clone git://git.suckless.org/farbfeld
Log | Files | Refs | README | LICENSE

commit 1b6461daf115790ed5895227f5a020610835f889
parent 3d16669c9f40046a09da59711b3f12d3daddeea4
Author: FRIGN <dev@frign.de>
Date:   Sun, 20 Jul 2014 11:07:26 +0200

Use if-extension and naming for imagefile

Respectively, image.png will become an image.if

Diffstat:
MMakefile | 26+++++++++++++-------------
Rimagefile2png.c -> if2png.c | 0
Rpng2imagefile.c -> png2if.c | 0
3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,12 +1,12 @@ -# imagefile - tools to convert to imagefile and back +# imagefile - tools to convert between png and if # See LICENSE file for copyright and license details include config.mk -SRC = png2imagefile.c imagefile2png.c +SRC = png2if.c if2png.c OBJ = ${SRC:.c=.o} -all: options png2imagefile imagefile2png +all: options png2if if2png options: @echo imagefile build options: @@ -20,28 +20,28 @@ options: ${OBJ}: config.mk -png2imagefile: png2imagefile.o +png2if: png2if.o @echo CC -o $@ - @${CC} -o $@ png2imagefile.o ${LDFLAGS} + @${CC} -o $@ png2if.o ${LDFLAGS} -imagefile2png: imagefile2png.o +if2png: if2png.o @echo CC -o $@ - @${CC} -o $@ imagefile2png.o ${LDFLAGS} + @${CC} -o $@ if2png.o ${LDFLAGS} clean: @echo cleaning - @rm -f png2imagefile imagefile2png ${OBJ} + @rm -f png2if if2png ${OBJ} install: all @echo installing executable files to ${DESTDIR}${PREFIX}/bin @mkdir -p ${DESTDIR}${PREFIX}/bin - @cp -f png2imagefile imagefile2png ${DESTDIR}${PREFIX}/bin - @chmod 755 ${DESTDIR}${PREFIX}/bin/png2imagefile - @chmod 755 ${DESTDIR}${PREFIX}/bin/imagefile2png + @cp -f png2if if2png ${DESTDIR}${PREFIX}/bin + @chmod 755 ${DESTDIR}${PREFIX}/bin/png2if + @chmod 755 ${DESTDIR}${PREFIX}/bin/if2png uninstall: @echo removing executable files from ${DESTDIR}${PREFIX}/bin - @rm -f ${DESTDIR}${PREFIX}/bin/png2imagefile - @rm -f ${DESTDIR}${PREFIX}/bin/imagefile2png + @rm -f ${DESTDIR}${PREFIX}/bin/png2if + @rm -f ${DESTDIR}${PREFIX}/bin/if2png .PHONY: all options clean install uninstall diff --git a/imagefile2png.c b/if2png.c diff --git a/png2imagefile.c b/png2if.c