using make to convert images to thumbs
Jason Stephenson
jason at sigio.com
Sun Feb 26 11:15:00 EST 2006
Jason Stephenson wrote:
>
> ## Makefile example starts here. ##
> IMG_BASE = /img
> THM_BASE = /thumb/img
>
> IMG_PROC = /path/to/image/processor
> IMG_PROC_OPTS = # default options for image processor
>
> TARGET = # undefined. define on command line
>
> thumbs:
> if test "${TARGET}" = "" ; then
> echo "TARGET undefined"
> else
> ${IMG_PROC} ${IMG_PROC_OPTS} ${IMG_BASE}/${TARGET} \
> ${THM_BASE}/${TARGET}
> fi
> ## Makefile example ends here. ##
There are errors in the above Makefile example. One that would actually
run through make would like this:
## Makefile example starts here. ##
IMG_BASE = /img
THM_BASE = /thumb/img
IMG_PROC = /path/to/image/processor
IMG_PROC_OPTS = # default options for image processor
TARGET = # undefined. define on command line
thumbs:
if test "${TARGET}" == "" ; then \
echo "TARGET undefined" \
else \
${IMG_PROC} ${IMG_PROC_OPTS} ${IMG_BASE}/${TARGET} \
${THM_BASE}/${TARGET} \
fi
## Makefile example ends here. ##
I noticed them after I sent the email. Unfortunately, I don't pay as
much attention when typing code in an email than when actually doing
something that I'm going to try to use. ;)
More information about the gnhlug-discuss
mailing list