Annotation of loncom/build/Makefile, revision 1.17

1.1       harris41    1: # Makefile
                      2: # For LON-CAPA
                      3: # Scott Harrison
                      4: # November 2000
                      5: 
1.12      harris41    6: CDTARGET="."
                      7: 
1.9       harris41    8: all: 
                      9: 	# nothing yet here
1.1       harris41   10: 
                     11: cd: 
1.12      harris41   12: 	# Build temporary script to get cd
1.11      harris41   13: 	# make sure there is enough disk space
1.12      harris41   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)
1.13      harris41   20: 	@echo -e "\tcd \$$(TARGET); wget -np -r -R "index.html" http://install.lon-capa.org/3.1/currentcdsource" >> Makefile.cd.tmp
1.14      harris41   21: 	@echo -e "\tcd \$$(TARGET); find ./install.lon-capa.org -name index.html | xargs rm -f" >> Makefile.cd.tmp
1.12      harris41   22: 	# set up cvs update commands
                     23: 	# set up cd image compilation (mkisofs)
1.15      harris41   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
1.12      harris41   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
1.1       harris41   29: 
                     30: cd_cover:
1.2       harris41   31: 
1.3       harris41   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: 
1.8       harris41   37: status:
1.7       harris41   38: 	install -d HTML
                     39: 	cp ../../doc/loncapafiles/*.gif HTML
                     40: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html status > HTML/filestatus.html
                     41: 
1.2       harris41   42: LCMakefile:
1.3       harris41   43: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html LCMakefile > LCMakefile
1.2       harris41   44: 
1.4       harris41   45: SPEC:
                     46: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html SPEC
1.7       harris41   47: 
1.9       harris41   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
1.10      harris41   51: 	make -f Makefile.configinstall SOURCE="../.." TARGET="" configfiles
1.9       harris41   52: 	perl loncaparestoreconfigurations lasttimestamp
1.10      harris41   53: 	make -f Makefile.configinstall TARGET="" configpermissions
1.9       harris41   54: 
1.8       harris41   55: install: build
1.7       harris41   56: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html install > Makefile.install
1.9       harris41   57: 	make -f Makefile.install SOURCE="../.." TARGET="" directories
                     58: 	make -f Makefile.install SOURCE="../.." TARGET="" files
                     59: 	make -f Makefile.install SOURCE="../.." TARGET="" links
1.4       harris41   60: 
1.8       harris41   61: build:
                     62: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html build > Makefile.build
1.9       harris41   63: 	make -f Makefile.build all
1.8       harris41   64: 
1.6       harris41   65: RPM: BinaryRoot
                     66: 	cat base_file_list.txt | perl make_rpm.pl base 3.1 '' '' BinaryRoot
                     67: 
                     68: BinaryRoot:
1.5       harris41   69: 	perl parse.pl ../../doc/loncapafiles/loncapafiles.html BinaryRoot
1.17    ! harris41   70: 	make -f Makefile.BinaryRoot SOURCE="../.." TARGET="BinaryRoot" directories
        !            71: 	make -f Makefile.BinaryRoot SOURCE="../.." TARGET="BinaryRoot" files
        !            72: 	make -f Makefile.BinaryRoot SOURCE="../.." TARGET="BinaryRoot" links
1.5       harris41   73: 
1.1       harris41   74: clean:
1.3       harris41   75: 	rm -Rf HTML
1.4       harris41   76: 	rm -f *.spec
                     77: 	rm -f LCMakefile
1.5       harris41   78: 	rm -Rf BinaryRoot
                     79: 	rm -f Makefile.BinaryRoot
1.8       harris41   80: 	rm -f Makefile.build
                     81: 	rm -f Makefile.install

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