File:  [LON-CAPA] / loncom / build / Makefile
Revision 1.13: download - view: text, annotated - select for diffs
Tue Dec 19 00:31:40 2000 UTC (23 years, 5 months ago) by harris41
Branches: MAIN
CVS tags: HEAD
added in logic for remote retrieval of cd directory structure. -Scott

    1: # Makefile
    2: # For LON-CAPA
    3: # Scott Harrison
    4: # November 2000
    5: 
    6: CDTARGET="."
    7: 
    8: all: 
    9: 	# nothing yet here
   10: 
   11: cd: 
   12: 	# Build temporary script to get cd
   13: 	# make sure there is enough disk space
   14: 	@echo "# Automatically generated Makefile for LON-CAPA" > Makefile.cd.tmp
   15: 	@/bin/df $(CDTARGET) | perl -e '@l=<>;split(/\s+/,$$l[1]);$$s=@_[3]*1024;if ($$s>1000000000) {print "\S=1\n";} else {print "\S=0\n";}' >> Makefile.cd.tmp
   16: 	@echo "cd:" >> Makefile.cd.tmp
   17: 	@echo -e "ifeq (\$$(S),1)" >> Makefile.cd.tmp
   18: 	@echo -e "\t@echo \"There is enough disk space.  Good!\"" >> Makefile.cd.tmp
   19: 	# set up commands to copy cd image from install.lon-capa.org (wget -r)
   20: 	@echo -e "\tcd \$$(TARGET); wget -np -r -R "index.html" http://install.lon-capa.org/3.1/currentcdsource" >> Makefile.cd.tmp
   21: 	@echo -e "\tfind ./install.lon-capa.org -name index.html | xargs rm -f" >> Makefile.cd.tmp
   22: 	# set up cvs update commands
   23: 	# set up cd image compilation (mkisofs)
   24: 	@echo -e "else" >> Makefile.cd.tmp
   25: 	@echo -e "\t@echo \"ERROR ******* Not enough disk space. There must be at least one gigabyte free\"" >> Makefile.cd.tmp
   26: 	@echo -e "endif" >> Makefile.cd.tmp
   27: 	make -f Makefile.cd.tmp TARGET="$(CDTARGET)" cd
   28: 
   29: cd_cover:
   30: 
   31: HTML:
   32: 	install -d HTML
   33: 	cp ../../doc/loncapafiles/*.gif HTML
   34: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html HTML > HTML/index.html
   35: 
   36: status:
   37: 	install -d HTML
   38: 	cp ../../doc/loncapafiles/*.gif HTML
   39: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html status > HTML/filestatus.html
   40: 
   41: LCMakefile:
   42: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html LCMakefile > LCMakefile
   43: 
   44: SPEC:
   45: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html SPEC
   46: 
   47: configinstall: 
   48: 	# there is a dependency on having directories in place, but oh well...
   49: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html configinstall > Makefile.configinstall
   50: 	make -f Makefile.configinstall SOURCE="../.." TARGET="" configfiles
   51: 	perl loncaparestoreconfigurations lasttimestamp
   52: 	make -f Makefile.configinstall TARGET="" configpermissions
   53: 
   54: install: build
   55: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html install > Makefile.install
   56: 	make -f Makefile.install SOURCE="../.." TARGET="" directories
   57: 	make -f Makefile.install SOURCE="../.." TARGET="" files
   58: 	make -f Makefile.install SOURCE="../.." TARGET="" links
   59: 
   60: build:
   61: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html build > Makefile.build
   62: 	make -f Makefile.build all
   63: 
   64: RPM: BinaryRoot
   65: 	cat base_file_list.txt | perl make_rpm.pl base 3.1 '' '' BinaryRoot
   66: 
   67: BinaryRoot:
   68: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html BinaryRoot
   69: 
   70: clean:
   71: 	rm -Rf HTML
   72: 	rm -f *.spec
   73: 	rm -f LCMakefile
   74: 	rm -Rf BinaryRoot
   75: 	rm -f Makefile.BinaryRoot
   76: 	rm -f Makefile.build
   77: 	rm -f Makefile.install

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>