xref: /petsc/makefile (revision f6ff2982bcf98335753bef5d4cd57c2d5d3ac2d2)
111b6ed10SLois Curfman McInnes#
211b6ed10SLois Curfman McInnes# This makefile contains some basic commands for building PETSc.
311b6ed10SLois Curfman McInnes# See bmake/common for additional commands.
411b6ed10SLois Curfman McInnes#
511b6ed10SLois Curfman McInnes
60de55854SLois Curfman McInnesPETSC_DIR = .
761523587SBarry Smith
8ab94cc7aSSatish BalayCFLAGS	 =
961523587SBarry SmithSOURCEC	 =
1061523587SBarry SmithSOURCEF	 =
116daaf66cSBarry SmithSOURCEH	 = Changes Machines Readme maint/addlinks \
12bcfa8486SBarry Smith	   maint/builddist FAQ Installation Performance BugReporting\
13deb7fc1cSBarry Smith	   maint/buildlinks maint/wwwman maint/xclude maint/crontab\
144e627d3aSBarry Smith	   bmake/common bmake/*/base* maint/autoftp docs/www/sec/*
1561523587SBarry SmithOBJSC	 =
1661523587SBarry SmithOBJSF	 =
1761523587SBarry SmithLIBBASE	 = libpetscvec
18b16a3bb1SBarry SmithDIRS	 = src include docs
1961523587SBarry Smith
204e627d3aSBarry Smithinclude $(PETSC_DIR)/bmake/$(PETSC_ARCH)/base
2161523587SBarry Smith
2211b6ed10SLois Curfman McInnes# Builds PETSc libraries for a given BOPT and architecture
237857610eSBarry Smithall: chkpetsc_dir
244e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a
250b3634f8SBarry Smith	-@echo "Beginning to compile libraries in all directories"
2626de76a5SSatish Balay	-@echo "Using compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
27b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
28b14e8f29SBarry Smith	-@echo "Using configuration flags: $(CONF)"
29b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
300b3634f8SBarry Smith	-@echo "------------------------------------------"
31e35bd481SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
32f3848965SBarry Smith	   ACTION=libfast  tree
33aa45e91cSSatish Balay	-@cd $(PETSC_DIR)/src/sys/src ; $(OMAKE) PETSC_ARCH=$(PETSC_ARCH) rs6000_time
344e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
350b3634f8SBarry Smith	-@echo "Completed building libraries"
360b3634f8SBarry Smith	-@echo "------------------------------------------"
370b3634f8SBarry Smith
380b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture
390b3634f8SBarry Smithtestexamples: chkpetsc_dir
400b3634f8SBarry Smith	-@echo "Beginning to compile and run test examples"
4126de76a5SSatish Balay	-@echo "Using compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
42b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
43b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
449c69534bSBarry Smith	-@echo "Using linker: $(CLINKER)"
459c69534bSBarry Smith	-@echo "Using libraries: $(PETSC_LIB)"
460b3634f8SBarry Smith	-@echo "------------------------------------------"
47eb817c50SBarry Smith	-@echo "Due to different numerical round-off on certain"
48eb817c50SBarry Smith	-@echo "machines some of the numbers may not match exactly."
4931ca9999SBarry Smith	-@echo "------------------------------------------"
500b3634f8SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
510b3634f8SBarry Smith	   ACTION=testexamples_1  tree
520b3634f8SBarry Smith	-@echo "Completed compiling and running test examples"
530b3634f8SBarry Smith	-@echo "------------------------------------------"
540b3634f8SBarry Smith
550b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture
568475343bSBarry Smithtestexamples_uni: chkpetsc_dir
578475343bSBarry Smith	-@echo "Beginning to compile and run uniprocessor test examples"
5826de76a5SSatish Balay	-@echo "Using compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
598475343bSBarry Smith	-@echo "Using linker: $(CLINKER)"
60b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
61b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
628475343bSBarry Smith	-@echo "Using libraries: $(PETSC_LIB)"
638475343bSBarry Smith	-@echo "------------------------------------------"
648475343bSBarry Smith	-@echo "Due to different numerical round-off on certain"
658475343bSBarry Smith	-@echo "machines some of the numbers may not match exactly."
668475343bSBarry Smith	-@echo "------------------------------------------"
678475343bSBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
688475343bSBarry Smith	   ACTION=testexamples_4  tree
698475343bSBarry Smith	-@echo "Completed compiling and running uniprocessor test examples"
708475343bSBarry Smith	-@echo "------------------------------------------"
718475343bSBarry Smith
728475343bSBarry Smith# Builds PETSc test examples for a given BOPT and architecture
730b3634f8SBarry Smithtestfortran: chkpetsc_dir
740b3634f8SBarry Smith	-@echo "Beginning to compile and run Fortran test examples"
7526de76a5SSatish Balay	-@echo "Using compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)"
769c69534bSBarry Smith	-@echo "Using linker: $(FLINKER)"
779c69534bSBarry Smith	-@echo "Using libraries: $(PETSC_FORTRAN_LIB)  $(PETSC_LIB)"
780b3634f8SBarry Smith	-@echo "------------------------------------------"
790b3634f8SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
800b3634f8SBarry Smith	   ACTION=testexamples_3  tree
810b3634f8SBarry Smith	-@echo "Completed compiling and running Fortran test examples"
820b3634f8SBarry Smith	-@echo "------------------------------------------"
8361523587SBarry Smith
8435ca7349SBarry Smith#
8511b6ed10SLois Curfman McInnes# Builds PETSc Fortran interface libary
8611b6ed10SLois Curfman McInnes# Note:	 libfast cannot run on .F files on certain machines, so we
8735ca7349SBarry Smith# use lib and check for errors here.
8883f0b094SBarry Smithfortran: chkpetsc_dir
89f4c0a52aSLois Curfman McInnes	-$(RM) -f $(PDIR)/libpetscfortran.a
900b3634f8SBarry Smith	-@echo "Beginning to compile Fortran interface library"
9126de76a5SSatish Balay	-@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)"
92fc939babSLois Curfman McInnes	-@echo "Using C/C++ compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
93fc939babSLois Curfman McInnes	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
94fc939babSLois Curfman McInnes	-@echo "Using configuration flags: $(CONF)"
95fc939babSLois Curfman McInnes	-@echo "Using include paths: $(PETSC_INCLUDE)"
960b3634f8SBarry Smith	-@echo "------------------------------------------"
97b16a3bb1SBarry Smith	-@cd src/fortran/custom; \
9835ca7349SBarry Smith	  $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \
9935ca7349SBarry Smith	  grep -v clog trashz | grep -v "information sections" | \
10035ca7349SBarry Smith	  egrep -i '(Error|warning|Can)' >> /dev/null;\
10135ca7349SBarry Smith	  if [ "$$?" != 1 ]; then \
10235ca7349SBarry Smith	  cat trashz ; fi; $(RM) trashz
103b16a3bb1SBarry Smith	-@cd src/fortran/auto; \
10435ca7349SBarry Smith	  $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) libfast
10583f0b094SBarry Smith	$(RANLIB) $(PDIR)/libpetscfortran.a
1060b3634f8SBarry Smith	-@echo "Completed compiling Fortran interface library"
1070b3634f8SBarry Smith	-@echo "------------------------------------------"
10883f0b094SBarry Smith
1098c37ef55SBarry Smithranlib:
1104e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
11161523587SBarry Smith
11211b6ed10SLois Curfman McInnes# Deletes PETSc libraries
11361523587SBarry Smithdeletelibs:
1144e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/*
115d44968ceSBarry Smith
11611b6ed10SLois Curfman McInnes# Deletes man pages (xman version)
117d44968ceSBarry Smithdeletemanpages:
1187857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/Keywords $(PETSC_DIR)/docs/man/man*/*
119d44968ceSBarry Smith
12011b6ed10SLois Curfman McInnes# Deletes man pages (HTML version)
121b346654fSBarry Smithdeletewwwpages:
122dea827f2SLois Curfman McInnes	$(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit \
123dea827f2SLois Curfman McInnes	         $(PETSC_DIR)/docs/www/man*.html
124b346654fSBarry Smith
12511b6ed10SLois Curfman McInnes# Deletes man pages (LaTeX version)
126b346654fSBarry Smithdeletelatexpages:
1277857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex
12820563c6bSBarry Smith
1297acb7333SLois Curfman McInnes# To access the tags in emacs, type M-x visit-tags-table and specify
1307acb7333SLois Curfman McInnes# the file petsc/TAGS.	Then, to move to where a PETSc function is
1317acb7333SLois Curfman McInnes# defined, enter M-. and the function name.  To search for a string
1327acb7333SLois Curfman McInnes# and move to the first occurrence, use M-x tags-search and the string.
1337acb7333SLois Curfman McInnes# To locate later occurrences, use M-,
1347acb7333SLois Curfman McInnes
13511b6ed10SLois Curfman McInnes# Builds all etags files
13611b6ed10SLois Curfman McInnesalletags:
1379ae7ee0fSLois Curfman McInnes	-make etags_complete
13811b6ed10SLois Curfman McInnes	-make etags
13911b6ed10SLois Curfman McInnes	-make etags_noexamples
14011b6ed10SLois Curfman McInnes	-make etags_makefiles
14111b6ed10SLois Curfman McInnes
14211b6ed10SLois Curfman McInnes# Builds the basic etags file.	This should be employed by most users.
14320563c6bSBarry Smithetags:
144edd2f0e1SBarry Smith	$(RM) TAGS
14570a6ad8cSBarry Smith	etags -f TAGS	 src/*/impls/*/*.h src/*/impls/*/*/*.h
146ba6aed2eSLois Curfman McInnes	etags -a -f TAGS src/*/examples/*.c src/*/examples/*/*.c
147531823f5SLois Curfman McInnes	etags -a -f TAGS src/*/*.h src/*/*/*.h src/*/interface/*.c
148bdec0fbfSBarry Smith	etags -a -f TAGS src/*/src/*.c src/*/impls/*/*.c
149749d9927SSatish Balay	etags -a -f TAGS src/*/impls/*/*/*.c  src/benchmarks/*.c
150cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/*.c src/contrib/*/src/*.c
151bec85862SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/examples/*.c
15270cf2eddSSatish Balay	etags -a -f TAGS src/contrib/*/src/*.h src/contrib/*/examples/*.F
15390ace30eSBarry Smith	etags -a -f TAGS include/*.h include/pinclude/*.h bmake/common
15490ace30eSBarry Smith	etags -a -f TAGS include/FINCLUDE/*.h
15570a6ad8cSBarry Smith	etags -a -f TAGS src/*/impls/*.c src/*/utils/*.c
1560de55854SLois Curfman McInnes	etags -a -f TAGS makefile src/*/src/makefile
1570de55854SLois Curfman McInnes	etags -a -f TAGS src/*/interface/makefile src/makefile
158f5354500SBarry Smith	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
1593ebb8ef7SBarry Smith	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
160da97394bSLois Curfman McInnes	etags -a -f TAGS src/*/examples/*/makefile src/*/examples/*/*/makefile
1613ebb8ef7SBarry Smith	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
162cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/makefile src/contrib/*/src/makefile
1632bf65771SLois Curfman McInnes	etags -a -f TAGS src/fortran/makefile src/fortran/auto/makefile
1642bf65771SLois Curfman McInnes	etags -a -f TAGS src/fortran/custom/makefile
165fea641f4SSatish Balay	etags -a -f TAGS include/makefile include/*/makefile
1664e627d3aSBarry Smith	etags -a -f TAGS bmake/common bmake/*/base*
16770cf2eddSSatish Balay	etags -a -f TAGS src/fortran/custom/*.c src/fortran/auto/*.c src/benchmarks/*.c
16870cf2eddSSatish Balay	etags -a -f TAGS src/*/examples/*.F src/*/examples/*.f src/fortran/custom/*.F
169da97394bSLois Curfman McInnes	etags -a -f TAGS src/*/examples/*/*.F src/*/examples/*/*.f
17028988994SBarry Smith	chmod g+w TAGS
171bfce26a3SBarry Smith
17229cdf679SBarry Smith# Builds complete etags list; only for PETSc developers.
17329cdf679SBarry Smithetags_complete:
17429cdf679SBarry Smith	$(RM) TAGS_COMPLETE
17529cdf679SBarry Smith	etags -f TAGS_COMPLETE	 src/*/impls/*/*.h src/*/impls/*/*/*.h
17629cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/examples/*.c src/*/examples/*/*.c
17729cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/*.h src/*/*/*.h src/*/interface/*.c
17829cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/src/*.c src/*/impls/*/*.c
17929cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/impls/*/*/*.c  src/benchmarks/*.c
18029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/*.c src/contrib/*/src/*.c
18129cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/examples/*.c
18229cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/src/*.h src/contrib/*/examples/*.F
18329cdf679SBarry Smith	etags -a -f TAGS_COMPLETE include/*.h include/pinclude/*.h bmake/common
18429cdf679SBarry Smith	etags -a -f TAGS_COMPLETE include/FINCLUDE/*.h
18529cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/impls/*.c src/*/utils/*.c
18629cdf679SBarry Smith	etags -a -f TAGS_COMPLETE makefile src/*/src/makefile
18729cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/interface/makefile src/makefile
18829cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/impls/makefile src/*/impls/*/makefile
18929cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/utils/makefile src/*/examples/makefile
190da97394bSLois Curfman McInnes	etags -a -f TAGS_COMPLETE src/*/examples/*/makefile src/*/examples/*/*/makefile
19129cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/makefile src/*/impls/*/*/makefile
19229cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/makefile src/contrib/*/src/makefile
19329cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/makefile src/fortran/auto/makefile
19429cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/custom/makefile
19529cdf679SBarry Smith	etags -a -f TAGS_COMPLETE include/makefile include/*/makefile
19629cdf679SBarry Smith	etags -a -f TAGS_COMPLETE bmake/common bmake/*/base*
19729cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/custom/*.c src/fortran/auto/*.c src/benchmarks/*.c
19829cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/examples/*.F src/*/examples/*.f src/fortran/custom/*.F
199da97394bSLois Curfman McInnes	etags -a -f TAGS_COMPLETE src/*/examples/*/*.F src/*/examples/*/*.f
20029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/routin.tex docs/tex/manual/manual.tex
20129cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/manual_tex.tex
20229cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/intro.tex docs/tex/manual/part1.tex
20329cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/part2.tex
20429cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/intro.tex docs/makefile
20529cdf679SBarry Smith	chmod g+w TAGS_COMPLETE
20629cdf679SBarry Smith
20711b6ed10SLois Curfman McInnes# Builds the etags file that excludes the examples directories
208bfce26a3SBarry Smithetags_noexamples:
209bfce26a3SBarry Smith	$(RM) TAGS_NO_EXAMPLES
210bfce26a3SBarry Smith	etags -f TAGS_NO_EXAMPLES src/*/impls/*/*.h src/*/impls/*/*/*.h
211531823f5SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/*.h src/*/*/*.h src/*/interface/*.c
21264f8aa17SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/src/*.c  src/*/impls/*/*.c
2130429b4e3SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/impls/*/*/*.c
214cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/*.c src/contrib/*/src/*.c
215bec85862SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/src/*.h
21690ace30eSBarry Smith	etags -a -f TAGS_NO_EXAMPLES include/*.h include/pinclude/*.h
21790ace30eSBarry Smith	etags -a -f TAGS_NO_EXAMPLES include/FINCLUDE/*.h
218b16a3bb1SBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/common
219464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/impls/*.c src/*/utils/*.c
2200de55854SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES makefile src/*/src/makefile
2210de55854SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/interface/makefile src/makefile
222464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/impls/makefile src/*/impls/*/makefile
223464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/utils/makefile
224464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/makefile src/*/impls/*/*/makefile
225cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/makefile src/contrib/*/src/makefile
2262bf65771SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/fortran/makefile src/fortran/auto/makefile
2272bf65771SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/fortran/custom/makefile
228fea641f4SSatish Balay	etags -a -f TAGS_NO_EXAMPLES include/makefile include/*/makefile
2294e627d3aSBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/common bmake/*/base*
2304c71ded4SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/auto/*.c
23162ce5da9SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/fortran/custom/*.c src/fortran/custom/*.F
23272936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/routin.tex
23372936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/manual.tex
23472936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/intro.tex
23572936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/part1.tex
23672936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/part2.tex
237fea641f4SSatish Balay	etags -a -f TAGS_NO_EXAMPLES docs/makefile
238bfce26a3SBarry Smith	chmod g+w TAGS_NO_EXAMPLES
239b16a3bb1SBarry Smith
24011b6ed10SLois Curfman McInnes# Builds the etags file for makefiles
241b16a3bb1SBarry Smithetags_makefiles:
242b16a3bb1SBarry Smith	$(RM) TAGS_MAKEFILES
243b16a3bb1SBarry Smith	etags -a -f TAGS_MAKEFILES bmake/common
2440de55854SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES makefile src/*/src/makefile
2450de55854SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/interface/makefile src/makefile
246b16a3bb1SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/impls/makefile src/*/impls/*/makefile
2472328c152SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/utils/makefile src/*/interface/makefile
248b16a3bb1SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/makefile src/*/impls/*/*/makefile
2490de55854SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/examples/makefile src/*/examples/*/makefile
250da97394bSLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/examples/*/*/makefile
2512bf65771SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/fortran/makefile src/fortran/auto/makefile
252cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/contrib/*/makefile src/contrib/*/src/makefile
2532bf65771SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/fortran/custom/makefile
254fea641f4SSatish Balay	etags -a -f TAGS_MAKEFILES include/makefile include/*/makefile
2554e627d3aSBarry Smith	etags -a -f TAGS_MAKEFILES bmake/common bmake/*/base*
256fea641f4SSatish Balay	etags -a -f TAGS_MAKEFILES docs/makefile
257b16a3bb1SBarry Smith	chmod g+w TAGS_MAKEFILES
25811b6ed10SLois Curfman McInnes
25911b6ed10SLois Curfman McInnes# ------------------------------------------------------------------
26011b6ed10SLois Curfman McInnes#
26111b6ed10SLois Curfman McInnes# All remaining actions are intended for PETSc developers only.
26211b6ed10SLois Curfman McInnes# PETSc users should not generally need to use these commands.
26311b6ed10SLois Curfman McInnes#
26411b6ed10SLois Curfman McInnes
26511b6ed10SLois Curfman McInnes# Builds all versions of the man pages
266c3e30b67SBarry Smithallmanpages: deletemanpages allwwwpages alllatexpages
26711b6ed10SLois Curfman McInnes	-make ACTION=manpages tree
268c3e30b67SBarry Smith	-cd src/fortran/custom; make manpages
26971a4ef87SSatish Balay	-cd docs/man; catman -W .
270dea827f2SLois Curfman McInnesallwwwpages: deletewwwpages
271299192b9SLois Curfman McInnes	-make ACTION=wwwpages_buildcite tree
272c3e30b67SBarry Smith	-cd src/fortran/custom; make wwwpages_buildcite
273c3e30b67SBarry Smith	-cd src/fortran/custom; make wwwpages
274dea827f2SLois Curfman McInnes	-make ACTION=wwwpages tree
275dea827f2SLois Curfman McInnes	-maint/wwwman
276dccdf784SSatish Balay	-maint/examplesindex.tcl
277dea827f2SLois Curfman McInnes
278416022c9SBarry Smithalllatexpages: deletelatexpages
279416022c9SBarry Smith	-make ACTION=latexpages tree
280c3e30b67SBarry Smith	-cd src/fortran/custom; make latexpages
281416022c9SBarry Smith
28211b6ed10SLois Curfman McInnes# Builds Fortran stub files
28311b6ed10SLois Curfman McInnesallfortranstubs:
28435aab85fSBarry Smith	-@include/finclude/generateincludes
2854b0e389bSBarry Smith	-@$(RM) -f $(PETSC_DIR)/src/fortran/auto/*.c
28611b6ed10SLois Curfman McInnes	-make ACTION=fortranstubs tree
2874b0e389bSBarry Smith	chmod g+w $(PETSC_DIR)/src/fortran/auto/*.c
288*f6ff2982SSatish Balay
289*f6ff2982SSatish Balay
290*f6ff2982SSatish BalaySHAREDLIBS = libmpiuni.so libpetsccontrib.so  libpetscksp.so libpetscmat.so \
291*f6ff2982SSatish Balay	     libpetscsles.so libpetscsnes.so libpetscsys.so libpetscts.so libpetscvec.so
292*f6ff2982SSatish Balay
293