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
|
# Note: Typing 'make' from this level will rebuild xpat2 from scratch.
# Afterwards, type 'make install' (as root) to install the game
# in default directories. A manual is in the doc subdirectory.
# You may run LaTeX (2.09) on it using 'make manual'.
#
# You may change src/Imakefile for different configurations.
# But then, you're on your own...
#
# Should you add / improve translations, please send a copy to
# m.bischoff@tu-bs.de for inclusion in future releases.
all:
(cd src && xmkmf && $(MAKE) && strip xpat2)
manual:
(cd doc && $(MAKE) xpat2.ps)
# different install targets: imake default, local, Linux FSSTND
install:
(cd src && $(MAKE) install)
install.local:
(cd src && $(MAKE) install.local)
install.fsstnd:
(cd src && $(MAKE) install.fsstnd)
clean:
(cd src && xmkmf && $(MAKE) clean)
(cd doc && $(MAKE) clean)
rm -f src/Makefile src/xpat2X*
find . -name "*~" -exec rm \{\} \;
distrib:
$(MAKE) clean
(cd ..; tar cvfz xpat2-1.04-src.tar.gz xpat2-1.04)
bindistrib:
(cd /; tar cvfz $(HOME)/xpat2-1.04-bin.tar.gz var/games/xpat* \
usr/games/bin/xpat2 usr/man/man6/xpat2.6x usr/doc/xpat2.dvi \
usr/doc/xpat2.lsm usr/games/lib/xpat)
allinterfaces:
# select a subset of Xlib Xaw Xview Motif
# 'make install' will use the last one you selected
for iface in Xlib Xview Xaw; \
do \
rm -f src/X*.o; \
sed -e "1,40s/undef use$$iface/define use$$iface/" \
< src/Imakefile.none > src/Imakefile; \
(cd src && xmkmf && make xpat2 && strip xpat2 && \
cp xpat2 xpat2$$iface); \
cp lib/XPat.ad.$$iface src/XPat.ad; \
done
|