diff options
Diffstat (limited to 'dviware/dvisirule/dvisirule-expg.mk')
-rw-r--r-- | dviware/dvisirule/dvisirule-expg.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/dviware/dvisirule/dvisirule-expg.mk b/dviware/dvisirule/dvisirule-expg.mk new file mode 100644 index 0000000000..e46d2c578f --- /dev/null +++ b/dviware/dvisirule/dvisirule-expg.mk @@ -0,0 +1,29 @@ +# +# Copyright (C) 2012-2022 Jiro Senju +# +# This package is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# any later version. +# +# This package is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this package. If not, see <http://www.gnu.org/licenses/>. +# + +# Splits the given DVI into some pages according to the generated +# filenames which are the given make-targets. +# Those filenames have the absolute page-numbers. + +%.sidvi: %.dvi + "${DVITYPE}" -show-opcodes $< |\ + awk -f "${Marker}" |\ + "${SIRULE}" $< $@ + +%.dvi: range = $(basename $@) +%.dvi: + "${DVISELECT}" -i "${Input}" -o $@ -s =${range} |