#C- This program is free software; you can redistribute it and/or #C- modify it under the terms of the GNU General Public License, #C- either Version 2 of the License or (at your option) any later #C- version. The license should have accompanied the program #C- or you may obtain a copy of the license from the Free Software #C- Foundation at http://www.fsf.org. #C- #C- This program is distributed in the hope that it will be useful, #C- but WITHOUT ANY WARRANTY; without even the implied warranty of #C- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #C- GNU General Public License for more details. @SET_MAKE@ SHELL = @SHELL@ VPATH = @srcdir@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ top_builddir = .. prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ datarootdir = @datarootdir@ datadir = @datadir@ libdir = @libdir@ mandir = @mandir@ INSTALL = @INSTALL@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_DATA = @INSTALL_DATA@ CONVERT = @CONVERT@ INKSCAPE = @INKSCAPE@ RSVG = @RSVG@ XDG_MIME = @XDG_MIME@ XDG_ICON_RESOURCE = @XDG_ICON_RESOURCE@ XDG_DESKTOP_MENU = @XDG_DESKTOP_MENU@ RM = @RM@ datadir_djvu = ${datadir}/djvu/osi/desktop # -------- all all: icons register-djvu-mime PNGICONS = hi16-djvu.png hi20-djvu.png hi22-djvu.png hi24-djvu.png \ hi32-djvu.png hi48-djvu.png hi64-djvu.png hi72-djvu.png \ hi96-djvu.png hi128-djvu.png hi256-djvu.png icons: ${PNGICONS} hi-djvu.svgz ${PNGICONS}: djvu.svg s=`echo $@ | sed -e 's/[a-z]*\([0-9]*\).*/\1/'`; \ ${RSVG} -w $${s} -h $${s} -o $@ $< \ || ${CONVERT} -geometry $${s}x$${s} -depth 8 -background none $< $@ \ || ${INKSCAPE} --without-gui --export-width=$${s} \ --export-height=$${s} --export-png=$@ $< \ || cp ${srcdir}/prebuilt-$@ $@ hi-djvu.svgz: djvu.svg cat $< | gzip >$@ register-djvu-mime: register-djvu-mime.in sed < ${srcdir}/register-djvu-mime.in > register-djvu-mime \ -e 's,XDG_MIME,${XDG_MIME},g' \ -e 's,XDG_ICON_RESOURCE,${XDG_ICON_RESOURCE},g' \ -e 's,XDG_DESKTOP_MENU,${XDG_DESKTOP_MENU},g' \ -e 's,DATADIR,${datadir},g' \ -e 's,MYDIR,${datadir_djvu},g' chmod a+x register-djvu-mime # -------- install install: install-djvu-files install-djvu-files: FORCE ${INSTALL} -d ${DESTDIR}${datadir_djvu} ${INSTALL_PROGRAM} register-djvu-mime ${DESTDIR}${datadir_djvu} ${INSTALL_DATA} *djvu.png ${DESTDIR}${datadir_djvu} ${INSTALL_DATA} *djvu.svgz ${DESTDIR}${datadir_djvu} ${INSTALL_DATA} ${srcdir}/*mime.xml ${DESTDIR}${datadir_djvu} -@echo "Run ${datadir_djvu}/register-djvu-mime install" -@echo " to register the djvu mime types and icons." # -------- misc clean: FORCE -${RM} 2>/dev/null register-djvu-mime *.png *.svgz distclean: clean -${RM} -r 2>/dev/null Makefile *.rpo ii_files depend: FORCE: .PHONY: FORCE