| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
RM = rm |
| 6 |
RMFLAGS = -f |
| 7 |
MV = mv |
| 8 |
MVFLAGS = -f |
| 9 |
CP = cp |
| 10 |
CPFLAGS = -p |
| 11 |
|
| 12 |
MANDIR = ../man |
| 13 |
|
| 14 |
all: dirs files hardcopy |
| 15 |
|
| 16 |
dirs: |
| 17 |
@(if [ ! -d ${MANDIR} ]; then \ |
| 18 |
mkdir ${MANDIR}; \ |
| 19 |
mkdir ${MANDIR}/man1 ${MANDIR}/man3 ${MANDIR}/mann; \ |
| 20 |
fi) |
| 21 |
|
| 22 |
files: |
| 23 |
@(for i in *.html; do \ |
| 24 |
echo processing $$i; \ |
| 25 |
./html2man ../man < $$i; \ |
| 26 |
done) |
| 27 |
|
| 28 |
hardcopy: |
| 29 |
html2ps -C fb -d -g -n -u -W b -x 1 -o xpa.ps help.html |
| 30 |
ps2pdf xpa.ps xpa.pdf |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
index: szlong |
| 36 |
@(cd ..; MANPATH=`pwd`/man; export MANPATH; cd doc; \ |
| 37 |
SW=`which swish-e`; \ |
| 38 |
SZ_LONG=`./szlong`; \ |
| 39 |
sed -e 's#@SW@#'$$SW'#g' < sman_conf.tmpl > $${HOME}/sman.conf; \ |
| 40 |
sman-update --clearcache; \ |
| 41 |
sman-update --verbose --index=./sman/xpa$${SZ_LONG}.index; \ |
| 42 |
rm -f $${HOME}/sman.conf szlong) |
| 43 |
|
| 44 |
szlong: szlong.c |
| 45 |
$(CC) $(CFLAGS) -o szlong szlong.c |
| 46 |
|
| 47 |
clean: |
| 48 |
-$(RM) $(RMFLAGS) *.BAK *.bak *.o core errs ,* *~ *.a \ |
| 49 |
foo* goo* tags TAGS html2ps.dbg |
| 50 |
|
| 51 |
|