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: # set up cvs update commands
21: # set up cd image compilation (mkisofs)
22: @echo -e "else" >> Makefile.cd.tmp
23: @echo -e "\t@echo \"ERROR ******* Not enough disk space. There must be at least one gigabyte free\"" >> Makefile.cd.tmp
24: @echo -e "endif" >> Makefile.cd.tmp
25: make -f Makefile.cd.tmp TARGET="$(CDTARGET)" cd
26:
27: cd_cover:
28:
29: HTML:
30: install -d HTML
31: cp ../../doc/loncapafiles/*.gif HTML
32: perl parse.pl ../../doc/loncapafiles/loncapafiles.html HTML > HTML/index.html
33:
34: status:
35: install -d HTML
36: cp ../../doc/loncapafiles/*.gif HTML
37: perl parse.pl ../../doc/loncapafiles/loncapafiles.html status > HTML/filestatus.html
38:
39: LCMakefile:
40: perl parse.pl ../../doc/loncapafiles/loncapafiles.html LCMakefile > LCMakefile
41:
42: SPEC:
43: perl parse.pl ../../doc/loncapafiles/loncapafiles.html SPEC
44:
45: configinstall:
46: # there is a dependency on having directories in place, but oh well...
47: perl parse.pl ../../doc/loncapafiles/loncapafiles.html configinstall > Makefile.configinstall
48: make -f Makefile.configinstall SOURCE="../.." TARGET="" configfiles
49: perl loncaparestoreconfigurations lasttimestamp
50: make -f Makefile.configinstall TARGET="" configpermissions
51:
52: install: build
53: perl parse.pl ../../doc/loncapafiles/loncapafiles.html install > Makefile.install
54: make -f Makefile.install SOURCE="../.." TARGET="" directories
55: make -f Makefile.install SOURCE="../.." TARGET="" files
56: make -f Makefile.install SOURCE="../.." TARGET="" links
57:
58: build:
59: perl parse.pl ../../doc/loncapafiles/loncapafiles.html build > Makefile.build
60: make -f Makefile.build all
61:
62: RPM: BinaryRoot
63: cat base_file_list.txt | perl make_rpm.pl base 3.1 '' '' BinaryRoot
64:
65: BinaryRoot:
66: perl parse.pl ../../doc/loncapafiles/loncapafiles.html BinaryRoot
67:
68: clean:
69: rm -Rf HTML
70: rm -f *.spec
71: rm -f LCMakefile
72: rm -Rf BinaryRoot
73: rm -f Makefile.BinaryRoot
74: rm -f Makefile.build
75: rm -f Makefile.install
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>