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
|
#!/bin/sh
#
# The XCIN Makefile of xcin-2.0d.tar.gz
#
# Written by Tung-Han Hsieh, 1997.
#
# Email: thhsieh@twcpro.phys.ntu.edu.tw
#
all: @MAKEALL@
make_xcin:
(cd xcin; make all)
make_crxvt:
(cd crxvt; make all)
make_inptabs:
(cd input_tabs/source; make all)
install: rm_filelist @INSTALLALL@ install_filelist
install_xcin: make_xcin
cd xcin; make install
install_crxvt: make_crxvt
cd crxvt; make install
install_inptabs: make_inptabs
cd input_tabs/source; make install
install_docs:
cd docs; make install
install_filelist:
rm -f filelist
for f in `ls -d *`; do\
if [ -d $$f ] && [ -f $$f/filelist ]; then\
echo "$$f:" >> filelist;\
cat $$f/filelist >> filelist;\
echo >> filelist;\
rm -f $$f/filelist;\
fi;\
done
rm_filelist:
rm -f filelist
for f in `ls -d *`; do\
if [ -d $$f ] && [ -f $$f/filelist ]; then rm -f $$f/filelist; fi;\
done
clean:
for f in `ls -d *`; do\
if [ -d $$f ] && [ -f $$f/Makefile ]; then\
(cd $$f; make clean);\
elif [ -d $$f/source ] && [ -f $$f/source/Makefile ]; then\
(cd $$f/source; make clean);\
fi;\
done
rm -f filelist
veryclean distclean:
for f in `ls -d *`; do\
if [ -d $$f ] && [ -f $$f/Makefile ]; then\
(cd $$f; make veryclean);\
elif [ -d $$f/source ] && [ -f $$f/source/Makefile ]; then\
(cd $$f/source; make veryclean);\
fi;\
done
rm -f filelist config.status install.status Makefile
|