xref: /petsc/makefile (revision b334301ed4aa0a5ea66c56df7c10e39903ec6a94)
111b6ed10SLois Curfman McInnes#
2cfd69a58SBarry Smith# This is the makefile for installing PETSc. See the file
3cfd69a58SBarry Smith# Installation for directions on installing PETSc.
4cfd69a58SBarry Smith# See also bmake/common for additional commands.
511b6ed10SLois Curfman McInnes#
611b6ed10SLois Curfman McInnes
7ab94cc7aSSatish BalayCFLAGS	 =
861523587SBarry SmithSOURCEC	 =
961523587SBarry SmithSOURCEF	 =
105eea60f9SBarry SmithDOCS	 = Changes Machines Readme maint/addlinks \
1143a90d84SBarry Smith	   maint/builddist FAQ Installation BugReporting\
12deb7fc1cSBarry Smith	   maint/buildlinks maint/wwwman maint/xclude maint/crontab\
13630a6785SBarry Smith	   bmake/common bmake/*/base* maint/autoftp docs/www/sec/* \
14630a6785SBarry Smith           include/finclude/generateincludes bin/petscviewinfo.text \
15630a6785SBarry Smith           bin/petscoptsinfo.text
1661523587SBarry SmithOBJSC	 =
1761523587SBarry SmithOBJSF	 =
1861523587SBarry SmithLIBBASE	 = libpetscvec
19b16a3bb1SBarry SmithDIRS	 = src include docs
2061523587SBarry Smith
214e627d3aSBarry Smithinclude $(PETSC_DIR)/bmake/$(PETSC_ARCH)/base
2261523587SBarry Smith
2311b6ed10SLois Curfman McInnes# Builds PETSc libraries for a given BOPT and architecture
247857610eSBarry Smithall: chkpetsc_dir
25511caf8eSSatish Balay	-$(RM) -f $(PDIR)/*
260b3634f8SBarry Smith	-@echo "Beginning to compile libraries in all directories"
2747794344SBarry Smith	-@echo "Using compiler: $(CC) $(COPTFLAGS)"
2847794344SBarry Smith	-@echo "-----------------------------------------"
29b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
3047794344SBarry Smith	-@echo "-----------------------------------------"
31b14e8f29SBarry Smith	-@echo "Using configuration flags: $(CONF)"
3247794344SBarry Smith	-@echo "-----------------------------------------"
33b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
3447794344SBarry Smith	-@echo "-----------------------------------------"
35c2c9bc36SBarry Smith	-@echo "Using PETSc directory: $(PETSC_DIR)"
36c2c9bc36SBarry Smith	-@echo "Using PETSc arch: $(PETSC_ARCH)"
3747794344SBarry Smith	-@echo "========================================="
38e35bd481SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
39f3848965SBarry Smith	   ACTION=libfast  tree
40f88f42abSSatish Balay	-@cd $(PETSC_DIR)/src/sys/src ; \
41f88f42abSSatish Balay	$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) rs6000_time
424e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
430be1b381SSatish Balay	-@chmod g+w  $(PDIR)/*.a
440b3634f8SBarry Smith	-@echo "Completed building libraries"
4547794344SBarry Smith	-@echo "========================================="
460b3634f8SBarry Smith
470b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture
48a9369724SSatish Balaytestexamples: chkopts
490b3634f8SBarry Smith	-@echo "Beginning to compile and run test examples"
5047794344SBarry Smith	-@echo "Using compiler: $(CC) $(COPTFLAGS)"
5147794344SBarry Smith	-@echo "-----------------------------------------"
52b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
5347794344SBarry Smith	-@echo "-----------------------------------------"
54b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
5547794344SBarry Smith	-@echo "-----------------------------------------"
56c2c9bc36SBarry Smith	-@echo "Using PETSc directory: $(PETSC_DIR)"
57c2c9bc36SBarry Smith	-@echo "Using PETSc arch: $(PETSC_ARCH)"
58c2c9bc36SBarry Smith	-@echo "------------------------------------------"
599c69534bSBarry Smith	-@echo "Using linker: $(CLINKER)"
609c69534bSBarry Smith	-@echo "Using libraries: $(PETSC_LIB)"
610b3634f8SBarry Smith	-@echo "------------------------------------------"
62eb817c50SBarry Smith	-@echo "Due to different numerical round-off on certain"
63eb817c50SBarry Smith	-@echo "machines some of the numbers may not match exactly."
6447794344SBarry Smith	-@echo "========================================="
650b3634f8SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
660b3634f8SBarry Smith	   ACTION=testexamples_1  tree
670b3634f8SBarry Smith	-@echo "Completed compiling and running test examples"
6847794344SBarry Smith	-@echo "========================================="
690b3634f8SBarry Smith
700b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture
71a9369724SSatish Balaytestexamples_uni: chkopts
728475343bSBarry Smith	-@echo "Beginning to compile and run uniprocessor test examples"
7347794344SBarry Smith	-@echo "Using compiler: $(CC) $(COPTFLAGS)"
748475343bSBarry Smith	-@echo "Using linker: $(CLINKER)"
7547794344SBarry Smith	-@echo "------------------------------------------"
76b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
7747794344SBarry Smith	-@echo "------------------------------------------"
78b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
7947794344SBarry Smith	-@echo "------------------------------------------"
80d6db1478SLois Curfman McInnes	-@echo "Using PETSc directory: $(PETSC_DIR)"
81d6db1478SLois Curfman McInnes	-@echo "Using PETSc arch: $(PETSC_ARCH)"
82d6db1478SLois Curfman McInnes	-@echo "------------------------------------------"
83d6db1478SLois Curfman McInnes	-@echo "Using linker: $(CLINKER)"
848475343bSBarry Smith	-@echo "Using libraries: $(PETSC_LIB)"
858475343bSBarry Smith	-@echo "------------------------------------------"
868475343bSBarry Smith	-@echo "Due to different numerical round-off on certain"
878475343bSBarry Smith	-@echo "machines some of the numbers may not match exactly."
8847794344SBarry Smith	-@echo "========================================="
898475343bSBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
908475343bSBarry Smith	   ACTION=testexamples_4  tree
918475343bSBarry Smith	-@echo "Completed compiling and running uniprocessor test examples"
9247794344SBarry Smith	-@echo "========================================="
938475343bSBarry Smith
9435ca7349SBarry Smith#
9511b6ed10SLois Curfman McInnes# Builds PETSc Fortran interface libary
9611b6ed10SLois Curfman McInnes# Note:	 libfast cannot run on .F files on certain machines, so we
9735ca7349SBarry Smith# use lib and check for errors here.
9883f0b094SBarry Smithfortran: chkpetsc_dir
99727c161cSBarry Smith	-$(RM) -f $(PDIR)/libpetscfortran.*
1000b3634f8SBarry Smith	-@echo "Beginning to compile Fortran interface library"
10126de76a5SSatish Balay	-@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)"
10247794344SBarry Smith	-@echo "Using C/C++ compiler: $(CC) $(COPTFLAGS)"
10347794344SBarry Smith	-@echo "------------------------------------------"
104fc939babSLois Curfman McInnes	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
10547794344SBarry Smith	-@echo "------------------------------------------"
106fc939babSLois Curfman McInnes	-@echo "Using configuration flags: $(CONF)"
10747794344SBarry Smith	-@echo "------------------------------------------"
108fc939babSLois Curfman McInnes	-@echo "Using include paths: $(PETSC_INCLUDE)"
10947794344SBarry Smith	-@echo "------------------------------------------"
110d6db1478SLois Curfman McInnes	-@echo "Using PETSc directory: $(PETSC_DIR)"
111d6db1478SLois Curfman McInnes	-@echo "Using PETSc arch: $(PETSC_ARCH)"
11247794344SBarry Smith	-@echo "========================================="
113b16a3bb1SBarry Smith	-@cd src/fortran/custom; \
11435ca7349SBarry Smith	  $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \
11535ca7349SBarry Smith	  grep -v clog trashz | grep -v "information sections" | \
11635ca7349SBarry Smith	  egrep -i '(Error|warning|Can)' >> /dev/null;\
11735ca7349SBarry Smith	  if [ "$$?" != 1 ]; then \
11835ca7349SBarry Smith	  cat trashz ; fi; $(RM) trashz
119b16a3bb1SBarry Smith	-@cd src/fortran/auto; \
12035ca7349SBarry Smith	  $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) libfast
12183f0b094SBarry Smith	$(RANLIB) $(PDIR)/libpetscfortran.a
1220be1b381SSatish Balay	-@chmod g+w  $(PDIR)/*.a
1230b3634f8SBarry Smith	-@echo "Completed compiling Fortran interface library"
12447794344SBarry Smith	-@echo "========================================="
12583f0b094SBarry Smith
126727c161cSBarry Smith# Builds PETSc test examples for a given BOPT and architecture
127a9369724SSatish Balaytestfortran: chkopts
128727c161cSBarry Smith	-@echo "Beginning to compile and run Fortran test examples"
129727c161cSBarry Smith	-@echo "Using compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)"
130727c161cSBarry Smith	-@echo "Using linker: $(FLINKER)"
131727c161cSBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
13247794344SBarry Smith	-@echo "------------------------------------------"
133727c161cSBarry Smith	-@echo "Using PETSc directory: $(PETSC_DIR)"
134727c161cSBarry Smith	-@echo "Using PETSc arch: $(PETSC_ARCH)"
135727c161cSBarry Smith	-@echo "------------------------------------------"
136727c161cSBarry Smith	-@echo "Using linker: $(FLINKER)"
137727c161cSBarry Smith	-@echo "Using libraries: $(PETSC_FORTRAN_LIB) $(PETSC_LIB)"
13847794344SBarry Smith	-@echo "========================================="
139e4ef9893SBarry Smith	-@echo "Due to different numerical round-off on certain"
140e4ef9893SBarry Smith	-@echo "machines or the way Fortran formats numbers"
141e4ef9893SBarry Smith	-@echo "some of the results may not match exactly."
142e4ef9893SBarry Smith	-@echo "========================================="
143e4ef9893SBarry Smith	-@echo "On some machines you may get messages of the form"
144e4ef9893SBarry Smith	-@echo "PetscScalarAddressToFortran:C and Fortran arrays are"
145e4ef9893SBarry Smith	-@echo "not commonly aligned or are too far apart to be indexed"
146e4ef9893SBarry Smith	-@echo "by an integer. Locations: C xxxc Fortran xxxf"
147e4ef9893SBarry Smith	-@echo "Locations/sizeof(Scalar): C yyc Fortran yyf"
148e4ef9893SBarry Smith	-@echo "This indicates that you may not be able to use the"
149e4ef9893SBarry Smith	-@echo "PETSc routines VecGetArray() and MatGetArray() from Fortran"
150e4ef9893SBarry Smith	-@echo "========================================="
151727c161cSBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
152727c161cSBarry Smith	   ACTION=testexamples_3  tree
153727c161cSBarry Smith	-@echo "Completed compiling and running Fortran test examples"
15447794344SBarry Smith	-@echo "========================================="
155727c161cSBarry Smith
156b1f85764SBarry Smith#
157b1f85764SBarry Smith# Builds PETSc Fortran90 interface libary
158b1f85764SBarry Smith# Note:	 libfast cannot run on .F files on certain machines, so we
159b1f85764SBarry Smith# use lib and check for errors here.
160b1f85764SBarry Smith# Note: F90 interface currently only supported in NAG F90 compiler
161d7f8d646SSatish Balayfortran90: chkpetsc_dir fortran
162b1f85764SBarry Smith	-@echo "Beginning to compile Fortran90 interface library"
163b1f85764SBarry Smith	-@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)"
164b1f85764SBarry Smith	-@echo "Using C/C++ compiler: $(CC) $(COPTFLAGS)"
165b1f85764SBarry Smith	-@echo "------------------------------------------"
166b1f85764SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
167b1f85764SBarry Smith	-@echo "------------------------------------------"
168b1f85764SBarry Smith	-@echo "Using configuration flags: $(CONF)"
169b1f85764SBarry Smith	-@echo "------------------------------------------"
170b1f85764SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
171b1f85764SBarry Smith	-@echo "------------------------------------------"
172b1f85764SBarry Smith	-@echo "Using PETSc directory: $(PETSC_DIR)"
173b1f85764SBarry Smith	-@echo "Using PETSc arch: $(PETSC_ARCH)"
174b1f85764SBarry Smith	-@echo "========================================="
175b1f85764SBarry Smith	-@cd src/fortran/f90; \
176b1f85764SBarry Smith	  $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \
177b1f85764SBarry Smith	  grep -v clog trashz | grep -v "information sections" | \
178b1f85764SBarry Smith	  egrep -i '(Error|warning|Can)' >> /dev/null;\
179b1f85764SBarry Smith	  if [ "$$?" != 1 ]; then \
180b1f85764SBarry Smith	  cat trashz ; fi; $(RM) trashz
181b1f85764SBarry Smith	$(RANLIB) $(PDIR)/libpetscfortran.a
1820be1b381SSatish Balay	-@chmod g+w  $(PDIR)/*.a
183b1f85764SBarry Smith	-@echo "Completed compiling Fortran90 interface library"
184b1f85764SBarry Smith	-@echo "========================================="
185b1f85764SBarry Smith
1868c37ef55SBarry Smithranlib:
1874e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
18861523587SBarry Smith
18911b6ed10SLois Curfman McInnes# Deletes PETSc libraries
19061523587SBarry Smithdeletelibs:
1914e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/*
192d44968ceSBarry Smith
19311b6ed10SLois Curfman McInnes# Deletes man pages (HTML version)
194b346654fSBarry Smithdeletewwwpages:
195dea827f2SLois Curfman McInnes	$(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit \
196dea827f2SLois Curfman McInnes	         $(PETSC_DIR)/docs/www/man*.html
197b346654fSBarry Smith
19811b6ed10SLois Curfman McInnes# Deletes man pages (LaTeX version)
199b346654fSBarry Smithdeletelatexpages:
2007857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex
20120563c6bSBarry Smith
2027acb7333SLois Curfman McInnes# To access the tags in emacs, type M-x visit-tags-table and specify
2037acb7333SLois Curfman McInnes# the file petsc/TAGS.	Then, to move to where a PETSc function is
2047acb7333SLois Curfman McInnes# defined, enter M-. and the function name.  To search for a string
2057acb7333SLois Curfman McInnes# and move to the first occurrence, use M-x tags-search and the string.
2067acb7333SLois Curfman McInnes# To locate later occurrences, use M-,
2077acb7333SLois Curfman McInnes
208b38bb785SSatish BalayTAGS_INCLUDE_FILES  = include/*.h include/pinclude/*.h include/FINCLUDE/*.h
209b38bb785SSatish BalayTAGS_BMAKE_FILES    = bmake/common bmake/*/base*
210b38bb785SSatish BalayTAGS_EXAMPLE_FILES  = src/*/examples/*/*.[c,h,F,f] src/*/examples/*/*/*.[c,h,F,f] \
211b38bb785SSatish Balay                      src/benchmarks/*.c src/contrib/*/examples/*/*.[c,h,F,f]
212b38bb785SSatish BalayTAGS_DOC_FILES      = docs/tex/manual/routin.tex docs/tex/manual/manual.tex \
213b38bb785SSatish Balay                      docs/tex/manual/manual_tex.tex docs/tex/manual/intro.tex \
214b38bb785SSatish Balay                      docs/tex/manual/part1.tex docs/tex/manual/part2.tex
2154431cf12SSatish BalayTAGS_SRC_FILES      = src/*/*.[c,h] src/*/interface/*.[c,h] src/*/src/*.[c,h] \
216b38bb785SSatish Balay                      src/*/utils/*.[c,h] \
217b38bb785SSatish Balay                      src/*/impls/*.[c,h] src/*/impls/*/*.[c,h] src/*/impls/*/*/*.[c,h] \
218*b334301eSBarry Smith                      src/gvec/impls/*/*/*/*/*.[c,h] src/contrib/*/*.[c,h] \
219*b334301eSBarry Smith                      src/contrib/*/src/*.[c,h] src/fortran/custom/*.[c,h,F]
220b38bb785SSatish BalayTAGS_MAKEFILE_FILES = include/makefile include/*/makefile \
221b38bb785SSatish Balay                      makefile \
222b38bb785SSatish Balay                      src/makefile src/*/makefile src/*/src/makefile \
223b38bb785SSatish Balay                      src/*/interface/makefile \
224b38bb785SSatish Balay                      src/*/utils/makefile \
225b38bb785SSatish Balay                      src/*/impls/makefile src/*/impls/*/makefile src/*/impls/*/*/makefile \
226b38bb785SSatish Balay                      src/*/examples/makefile src/*/examples/*/makefile src/*/examples/*/*/makefile \
227b38bb785SSatish Balay                      src/gvec/impls/*/*/*/*/makefile src/gvec/impls/*/*/*/makefile \
228b38bb785SSatish Balay                      src/fortran/*/makefile \
229b38bb785SSatish Balay                      src/contrib/*/makefile src/contrib/*/src/makefile \
230b38bb785SSatish Balay                      src/contrib/*/examples/makefile src/contrib/*/examples/*/makefile \
231b38bb785SSatish Balay                      docs/makefile
232b38bb785SSatish Balay
23311b6ed10SLois Curfman McInnes# Builds all etags files
23411b6ed10SLois Curfman McInnesalletags:
2359ae7ee0fSLois Curfman McInnes	-make etags_complete
23611b6ed10SLois Curfman McInnes	-make etags
23711b6ed10SLois Curfman McInnes	-make etags_noexamples
23811b6ed10SLois Curfman McInnes	-make etags_makefiles
23911b6ed10SLois Curfman McInnes
24011b6ed10SLois Curfman McInnes# Builds the basic etags file.	This should be employed by most users.
24120563c6bSBarry Smithetags:
242edd2f0e1SBarry Smith	$(RM) TAGS
243b38bb785SSatish Balay	etags -f TAGS $(TAGS_INCLUDE_FILES)
244b38bb785SSatish Balay	etags -a -f TAGS $(TAGS_SRC_FILES)
245b38bb785SSatish Balay	etags -a -f TAGS $(TAGS_EXAMPLE_FILES)
246b38bb785SSatish Balay	etags -a -f TAGS $(TAGS_MAKEFILE_FILES)
247b38bb785SSatish Balay	etags -a -f TAGS $(TAGS_BMAKE_FILES)
24828988994SBarry Smith	chmod g+w TAGS
249bfce26a3SBarry Smith
25029cdf679SBarry Smith# Builds complete etags list; only for PETSc developers.
25129cdf679SBarry Smithetags_complete:
25229cdf679SBarry Smith	$(RM) TAGS_COMPLETE
2539ca56a1bSSatish Balay	etags -f TAGS_COMPLETE $(TAGS_SRC_FILES)
2549ca56a1bSSatish Balay	etags -a -f TAGS_COMPLETE $(TAGS_INCLUDE_FILES)
255b38bb785SSatish Balay	etags -a -f TAGS_COMPLETE $(TAGS_EXAMPLE_FILES)
256b38bb785SSatish Balay	etags -a -f TAGS_COMPLETE $(TAGS_MAKEFILE_FILES)
257b38bb785SSatish Balay	etags -a -f TAGS_COMPLETE $(TAGS_BMAKE_FILES)
258b38bb785SSatish Balay	etags -a -f TAGS_COMPLETE $(TAGS_DOC_FILES)
25929cdf679SBarry Smith	chmod g+w TAGS_COMPLETE
26029cdf679SBarry Smith
26111b6ed10SLois Curfman McInnes# Builds the etags file that excludes the examples directories
262bfce26a3SBarry Smithetags_noexamples:
263bfce26a3SBarry Smith	$(RM) TAGS_NO_EXAMPLES
2649ca56a1bSSatish Balay	etags -f TAGS_NO_EXAMPLES $(TAGS_SRC_FILES)
2659ca56a1bSSatish Balay	etags -a -f TAGS_NO_EXAMPLES $(TAGS_INCLUDE_FILES)
266b38bb785SSatish Balay	etags -a -f TAGS_NO_EXAMPLES $(TAGS_MAKEFILE_FILES)
267b38bb785SSatish Balay	etags -a -f TAGS_NO_EXAMPLES $(TAGS_BMAKE_FILES)
268b38bb785SSatish Balay	etags -a -f TAGS_NO_EXAMPLES $(TAGS_DOC_FILES)
269bfce26a3SBarry Smith	chmod g+w TAGS_NO_EXAMPLES
270b16a3bb1SBarry Smith
27111b6ed10SLois Curfman McInnes# Builds the etags file for makefiles
272b16a3bb1SBarry Smithetags_makefiles:
273b16a3bb1SBarry Smith	$(RM) TAGS_MAKEFILES
274b38bb785SSatish Balay	etags -f TAGS_MAKEFILES $(TAGS_MAKEFILE_FILES)
275b38bb785SSatish Balay	etags -a -f TAGS_MAKEFILES $(TAGS_BMAKE_FILES)
276b16a3bb1SBarry Smith	chmod g+w TAGS_MAKEFILES
27711b6ed10SLois Curfman McInnes
278b38bb785SSatish Balay#
279b38bb785SSatish Balay# ctags builds the tags file required for VI.
280b38bb785SSatish Balay# To use the tags file do the following:
281b38bb785SSatish Balay# 1. within vi invole the command - :set tags=/home/bsmith/petsc/tags
282b38bb785SSatish Balay#    or add  the command to your ~/.exrc file - set tags=/home/bsmith/petsc/tags
283b38bb785SSatish Balay# 2. now to go to a tag do - :tag TAGNAME for eg - :tag MatCreate
284b38bb785SSatish Balay#
285b38bb785SSatish Balayctags:
286b38bb785SSatish Balay	$(RM) tags
287b8319b70SSatish Balay	ctags -w -f tags $(TAGS_INCLUDE_FILES)
288b8319b70SSatish Balay	ctags -w -a -f tags $(TAGS_SRC_FILES)
289b38bb785SSatish Balay	ctags -w -a -f tags $(TAGS_EXAMPLE_FILES)
290b38bb785SSatish Balay	ctags -w -a -f tags $(TAGS_MAKEFILE_FILES)
291b38bb785SSatish Balay	ctags -w -a -f tags $(TAGS_BMAKE_FILES)
292b38bb785SSatish Balay	chmod g+w tags
293b38bb785SSatish Balay
29411b6ed10SLois Curfman McInnes# ------------------------------------------------------------------
29511b6ed10SLois Curfman McInnes#
29611b6ed10SLois Curfman McInnes# All remaining actions are intended for PETSc developers only.
29711b6ed10SLois Curfman McInnes# PETSc users should not generally need to use these commands.
29811b6ed10SLois Curfman McInnes#
29911b6ed10SLois Curfman McInnes
30011b6ed10SLois Curfman McInnes# Builds all versions of the man pages
301956e605aSBarry Smithallmanpages: allwwwpages alllatexpages
302dea827f2SLois Curfman McInnesallwwwpages: deletewwwpages
303299192b9SLois Curfman McInnes	-make ACTION=wwwpages_buildcite tree
304c3e30b67SBarry Smith	-cd src/fortran/custom; make wwwpages_buildcite
305c3e30b67SBarry Smith	-cd src/fortran/custom; make wwwpages
306dea827f2SLois Curfman McInnes	-make ACTION=wwwpages tree
307dea827f2SLois Curfman McInnes	-maint/wwwman
3089921e35aSSatish Balay	-maint/examplesindex.tcl -www
309f8cfbf3fSSatish Balay	-maint/htmlkeywords.tcl
31051c61065SBarry Smith	-@chmod g+w docs/www/man*/*
311e01137a2SSatish Balay
312e01137a2SSatish Balay#This is similar to allwwwpages except -www -> -wwwhome
313e01137a2SSatish Balay#The wwwmanpages built this way can pe placed at PETSc Home Page
314e01137a2SSatish Balayallwwwhomepages: deletewwwpages
315e01137a2SSatish Balay	-make ACTION=wwwpages_buildcite tree
316e01137a2SSatish Balay	-cd src/fortran/custom; make wwwpages_buildcite
317e01137a2SSatish Balay	-cd src/fortran/custom; make wwwpages
318e01137a2SSatish Balay	-make ACTION=wwwpages tree
319e01137a2SSatish Balay	-maint/wwwman
320e01137a2SSatish Balay	-maint/examplesindex.tcl -wwwhome
32184047b72SSatish Balay	-maint/htmlkeywords.tcl -wwwhome
322e01137a2SSatish Balay	-@chmod g+w docs/www/man*/*
323e01137a2SSatish Balay
324416022c9SBarry Smithalllatexpages: deletelatexpages
325416022c9SBarry Smith	-make ACTION=latexpages tree
326c3e30b67SBarry Smith	-cd src/fortran/custom; make latexpages
32751c61065SBarry Smith	-@chmod g+w docs/tex/rsum/*
328416022c9SBarry Smith
32911b6ed10SLois Curfman McInnes# Builds Fortran stub files
33011b6ed10SLois Curfman McInnesallfortranstubs:
33135aab85fSBarry Smith	-@include/finclude/generateincludes
3324b0e389bSBarry Smith	-@$(RM) -f $(PETSC_DIR)/src/fortran/auto/*.c
33311b6ed10SLois Curfman McInnes	-make ACTION=fortranstubs tree
3344b0e389bSBarry Smith	chmod g+w $(PETSC_DIR)/src/fortran/auto/*.c
335f6ff2982SSatish Balay
336d55938c2SBarry Smithallci:
337d55938c2SBarry Smith	-@cd src/fortran/custom ; $(OMAKE) BOPT=$(BOPT) ci
338b951964fSBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=ci  tree
339b951964fSBarry Smith
340d55938c2SBarry Smithallco:
341d55938c2SBarry Smith	-@cd src/fortran/custom ; $(OMAKE) BOPT=$(BOPT) co
342d55938c2SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=co  tree
343d55938c2SBarry Smith
344*b334301eSBarry Smith#
345*b334301eSBarry Smith#   The commands below are for generating ADIC versions of the code;
346*b334301eSBarry Smith# they are not currently used.
347*b334301eSBarry Smith#
348*b334301eSBarry SmithCFLAGS   =  $(CPPFLAGS) $(CONF)
3495eea60f9SBarry Smithalladicignore:
3505eea60f9SBarry Smith	-@$(RM) $(PDIR)/adicignore
3515eea60f9SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adicignore  tree
3525eea60f9SBarry Smith
3535eea60f9SBarry Smithalladic:
35447794344SBarry Smith	-@cd include ; \
355f218b1c0SBarry Smith           $(ADIC_CC) -s -f 1 $(CFLAGS) petsc.h
356ba8edd79SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adic  tree
35747794344SBarry Smith	-@cd src/inline ; \
35847794344SBarry Smith            $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) adic
3596e81b665SBarry Smith
36047794344SBarry Smithalladiclib:
361f218b1c0SBarry Smith	-@$(RM) -f  $(PDIR)/*adic.a
36247794344SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) ACTION=adiclib  tree
3635eea60f9SBarry Smith
364*b334301eSBarry Smith
365*b334301eSBarry Smith
366*b334301eSBarry Smith
367*b334301eSBarry Smith
368f6ff2982SSatish Balay
369