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
|
#!/bin/sh
#
# The XCIN Makefile of xcin-2.3.03.tar.gz
#
# Written by Tung-Han Hsieh, 1997.
#
# Email: thhsieh@twcpro.phys.ntu.edu.tw
#
all: @MAKEALL@
.PHONY: install make_xcin make_inptab install_xcin install_inptab \
install_doc install_filelist rm_filelist clean very_clean dist_clean
install: rm_filelist @INSTALLALL@ install_filelist
make_xcin:
(cd src; make all)
make_inptab:
(cd input_tab; make all)
install_xcin: make_xcin
(cd src; make install)
install_inptab: make_inptab
(cd input_tab; make install)
install_doc:
(cd doc; 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);\
fi;\
done
rm -f filelist
veryclean:
for f in `ls -d *`; do\
if [ -d $$f ] && [ -f $$f/Makefile ]; then\
(cd $$f; make veryclean);\
fi;\
done
rm -f filelist config.status Makefile
distclean: veryclean
|