File:  [LON-CAPA] / loncom / build / Makefile
Revision 1.18: download - view: text, annotated - select for diffs
Thu Dec 21 15:07:20 2000 UTC (23 years, 5 months ago) by harris41
Branches: MAIN
CVS tags: HEAD
three lines are redundant -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 "\tcd \$$(TARGET); find ./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 "\tcd \$$(TARGET)/install.lon-capa.org/3.1/currentcdsource/; mkisofs -v -R -T -V \"LON-CAPA and Red Hat 6.2\" -b images/boot.img -c boot.cat -o \$$(TARGET)/redhat.img ." >> Makefile.cd.tmp
   25: 	@echo -e "else" >> Makefile.cd.tmp
   26: 	@echo -e "\t@echo \"ERROR ******* Not enough disk space. There must be at least one gigabyte free\"" >> Makefile.cd.tmp
   27: 	@echo -e "endif" >> Makefile.cd.tmp
   28: 	make -f Makefile.cd.tmp TARGET="$(CDTARGET)" cd
   29: 
   30: cd_cover:
   31: 
   32: HTML:
   33: 	install -d HTML
   34: 	cp ../../doc/loncapafiles/*.gif HTML
   35: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html HTML > HTML/index.html
   36: 
   37: status:
   38: 	install -d HTML
   39: 	cp ../../doc/loncapafiles/*.gif HTML
   40: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html status > HTML/filestatus.html
   41: 
   42: LCMakefile:
   43: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html LCMakefile > LCMakefile
   44: 
   45: SPEC:
   46: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html SPEC
   47: 
   48: configinstall: 
   49: 	# there is a dependency on having directories in place, but oh well...
   50: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html configinstall > Makefile.configinstall
   51: 	make -f Makefile.configinstall SOURCE="../.." TARGET="" configfiles
   52: 	perl loncaparestoreconfigurations lasttimestamp
   53: 	make -f Makefile.configinstall TARGET="" configpermissions
   54: 
   55: install: build
   56: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html install > Makefile.install
   57: 	make -f Makefile.install SOURCE="../.." TARGET="" directories
   58: 	make -f Makefile.install SOURCE="../.." TARGET="" files
   59: 	make -f Makefile.install SOURCE="../.." TARGET="" links
   60: 
   61: build:
   62: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html build > Makefile.build
   63: 	make -f Makefile.build all
   64: 
   65: RPM: BinaryRoot
   66: 	cat base_file_list.txt | perl make_rpm.pl base 3.1 '' '' BinaryRoot
   67: 
   68: BinaryRoot:
   69: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html BinaryRoot
   70: 
   71: clean:
   72: 	rm -Rf HTML
   73: 	rm -f *.spec
   74: 	rm -f LCMakefile
   75: 	rm -Rf BinaryRoot
   76: 	rm -f Makefile.BinaryRoot
   77: 	rm -f Makefile.build
   78: 	rm -f Makefile.install

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