1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
# -*-text-*-
#
# Makefile for the documentation directory
#
# Copyright 1994 rubini@ipvvis.unipv.it (Alessandro Rubini)
#
#################
#
# BE CAREFUL in editing:
# due to the large number of index files, and my use of a non standard
# info input file, any file $(TARGET).* is removed by "make clean"
#
# I chose to use a prefix for the input file ("doc.$(TARGET)"), to ease
# makeing clean and applying my own rules.
#
###################################################################
%.texinfo: doc.%
@rm -f $@ 2> /dev/null
sed -f ./infofilter $< > $@
chmod 400 $@
# This rule is somewhat a rewrite of texi2dvi. I like make more than sh :-)
%.dvi: %.texinfo
# create a spurious index file to please silly sh (bash will work anyway)
touch $*.oo
# get the index list
if test "x`ls $*.?? $*.aux`" != "x"; then \
for i in `ls $*.?? $*.aux`; do \
cp $$i $$i~; \
done; \
fi
tex $<
#check the file list, the file and if needed run TeX again
old="`ls $*.??~ $*.aux~ | sed 's/~//g'`"; \
new="`ls $*.?? $*.aux`"; \
need="n"; \
if test "$$old" != "$$new"; then need="y"; \
else \
for i in `ls $*.?? $*.aux`; do \
cmp -s $$i $$i~; if test $$? -ne 0; then need="y" break; fi; \
done; \
fi; \
if test "$$need" = "y"; then \
texindex $*.?? && tex $<; \
fi
%.ps: %.dvi
dvips -f $< > $@
%.lj: %.dvi
dvilj -e- $< > $@
%.info: %.texinfo
makeinfo $< -o $@
%.html: %.texinfo
perl ./texi2html $<
#%.man: doc.%
# manpages are created by the toplevel Makefile
%doc.txt: %.info
gawk -f ./mktxt $< > $@
##############################################
TARGET = barcode
ALL = $(TARGET).ps $(TARGET).info $(TARGET)doc.txt $(TARGET).html
all: $(ALL)
info: $(TARGET).info
$(TARGET)doc.txt: mktxt
check: _err.ps
gs -sDEVICE=linux -r320x200x16 $<
gs: $(TARGET).ps
gs -sDEVICE=linux -r640x480x2 $<
gv: $(TARGET).ps
ghostview $(TARGET).ps -magstep -1 -a4
mpage: all
mv $(TARGET).ps $(TARGET)1.ps
mpage -2AP $(TARGET)1.ps > $(TARGET)2.ps && rm $(TARGET)1.ps
terse:
rm -f *~ *.dvi *.log *.aux \
$(TARGET).*.bak $(TARGET).??? $(TARGET).texinfo
# preserve the ps copy
-mv $(TARGET).ps PS;
-rm -f $(TARGET).??;
-mv PS $(TARGET).ps;
clean: terse
rm -f $(ALL) $(TARGET)_toc.html
|