#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- version 2 or any later version. The license should have
#C- accompanied the program or you may obtain a copy of the
#C- license from the Free Software 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@
LN_S = @LN_S@
RM = @RM@
TOUCH = @TOUCH@
MKDIR = @MKDIR@
LIBTOOL = @LIBTOOL@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
LRELEASE = @LRELEASE@
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datarootdir = @datarootdir@
datadir = @datadir@
libdir = @libdir@
mandir = @mandir@
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = .
SUBDIRS=src nsdejavu desktopfiles
# make all
all: all-djview
@NSDEJAVU_YES@all: all-nsdejavu
@NPDJVU_YES@all: all-npdjvu
all: all-desktopfiles
all: all-djview-qm
all-djview: FORCE
cd src && ${MAKE}
all-nsdejavu: FORCE
cd nsdejavu && ${MAKE}
all-npdjvu: FORCE
cd npdjvu && ${MAKE}
all-desktopfiles: FORCE
cd desktopfiles && ${MAKE}
all-djview-qm: FORCE
-cd src && test -x "${LRELEASE}" && "${LRELEASE}" djview.pro
# make install
install: install-djview
@NSDEJAVU_YES@install: install-nsdejavu
@DESKTOP_YES@install: install-desktopfiles
install-djview: install-djview-bin install-djview-man install-djview-qm
install-djview-bin: FORCE
${INSTALL} -d ${DESTDIR}${bindir}
eval `grep '^TARGET *=' src/Makefile | sed -e 's/ *= */=/'` ; \
${INSTALL_PROGRAM} src/$${TARGET-djview} ${DESTDIR}${bindir}/djview4
cd ${DESTDIR}${bindir} ; ${LN_S} djview4 djview || true
install-djview-man: FORCE
${INSTALL} -d ${DESTDIR}${mandir}/man1
${INSTALL_DATA} ${srcdir}/src/djview.1 \
${DESTDIR}${mandir}/man1/djview4.1
cd ${DESTDIR}${mandir}/man1 ; ${LN_S} djview4.1 djview.1 || true
install-djview-qm: FORCE
${INSTALL} -d ${DESTDIR}${datadir}/djvu/djview4
for qm in src/*.qm ; do test -r $$qm && \
${INSTALL_DATA} $$qm ${DESTDIR}${datadir}/djvu/djview4 || true ; \
done
install-nsdejavu: FORCE
( cd nsdejavu && ${MAKE} install )
install-desktopfiles: FORCE
( cd desktopfiles && ${MAKE} install )
# make clean
clean: clean-subdirs FORCE
-${RM} 2>/dev/null src/*.qm src/djview
@echo "Done."
clean-subdirs: FORCE
-for d in ${SUBDIRS} ; do ( cd $$d && ${MAKE} clean ) ; done
# make distclean
distclean: distclean-subdirs FORCE
-${RM} 2>/dev/null src/*.qm src/djview
-${RM} 2>/dev/null Makefile config.log config.status config.h libtool
-${RM} 2>/dev/null -r autom4te.cache
@echo "Done."
distclean-subdirs: FORCE
-for d in ${SUBDIRS} ; do ( cd $$d && ${MAKE} distclean ) ; done
# phony targets
FORCE:
.PHONY: FORCE