xref: /petsc/makefile (revision 72035b96cbcccb6ff2948d07e75d23714726a355)
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
7*72035b96SSatish Balay#PETSC_DIR = .
861523587SBarry Smith
9ab94cc7aSSatish BalayCFLAGS	 =
1061523587SBarry SmithSOURCEC	 =
1161523587SBarry SmithSOURCEF	 =
126daaf66cSBarry SmithSOURCEH	 = Changes Machines Readme maint/addlinks \
13bcfa8486SBarry Smith	   maint/builddist FAQ Installation Performance BugReporting\
14deb7fc1cSBarry Smith	   maint/buildlinks maint/wwwman maint/xclude maint/crontab\
154e627d3aSBarry Smith	   bmake/common bmake/*/base* maint/autoftp docs/www/sec/*
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"
2726de76a5SSatish Balay	-@echo "Using compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
28b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
29b14e8f29SBarry Smith	-@echo "Using configuration flags: $(CONF)"
30b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
310b3634f8SBarry Smith	-@echo "------------------------------------------"
32e35bd481SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
33f3848965SBarry Smith	   ACTION=libfast  tree
34aa45e91cSSatish Balay	-@cd $(PETSC_DIR)/src/sys/src ; $(OMAKE) PETSC_ARCH=$(PETSC_ARCH) rs6000_time
354e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
360b3634f8SBarry Smith	-@echo "Completed building libraries"
370b3634f8SBarry Smith	-@echo "------------------------------------------"
380b3634f8SBarry Smith
390b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture
400b3634f8SBarry Smithtestexamples: chkpetsc_dir
410b3634f8SBarry Smith	-@echo "Beginning to compile and run test examples"
4226de76a5SSatish Balay	-@echo "Using compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
43b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
44b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
459c69534bSBarry Smith	-@echo "Using linker: $(CLINKER)"
469c69534bSBarry Smith	-@echo "Using libraries: $(PETSC_LIB)"
470b3634f8SBarry Smith	-@echo "------------------------------------------"
48eb817c50SBarry Smith	-@echo "Due to different numerical round-off on certain"
49eb817c50SBarry Smith	-@echo "machines some of the numbers may not match exactly."
5031ca9999SBarry Smith	-@echo "------------------------------------------"
510b3634f8SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
520b3634f8SBarry Smith	   ACTION=testexamples_1  tree
530b3634f8SBarry Smith	-@echo "Completed compiling and running test examples"
540b3634f8SBarry Smith	-@echo "------------------------------------------"
550b3634f8SBarry Smith
560b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture
578475343bSBarry Smithtestexamples_uni: chkpetsc_dir
588475343bSBarry Smith	-@echo "Beginning to compile and run uniprocessor test examples"
5926de76a5SSatish Balay	-@echo "Using compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
608475343bSBarry Smith	-@echo "Using linker: $(CLINKER)"
61b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
62b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
638475343bSBarry Smith	-@echo "Using libraries: $(PETSC_LIB)"
648475343bSBarry Smith	-@echo "------------------------------------------"
658475343bSBarry Smith	-@echo "Due to different numerical round-off on certain"
668475343bSBarry Smith	-@echo "machines some of the numbers may not match exactly."
678475343bSBarry Smith	-@echo "------------------------------------------"
688475343bSBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
698475343bSBarry Smith	   ACTION=testexamples_4  tree
708475343bSBarry Smith	-@echo "Completed compiling and running uniprocessor test examples"
718475343bSBarry Smith	-@echo "------------------------------------------"
728475343bSBarry Smith
738475343bSBarry Smith# Builds PETSc test examples for a given BOPT and architecture
740b3634f8SBarry Smithtestfortran: chkpetsc_dir
750b3634f8SBarry Smith	-@echo "Beginning to compile and run Fortran test examples"
7626de76a5SSatish Balay	-@echo "Using compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)"
779c69534bSBarry Smith	-@echo "Using linker: $(FLINKER)"
78cfd69a58SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
799c69534bSBarry Smith	-@echo "Using libraries: $(PETSC_FORTRAN_LIB)  $(PETSC_LIB)"
800b3634f8SBarry Smith	-@echo "------------------------------------------"
810b3634f8SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
820b3634f8SBarry Smith	   ACTION=testexamples_3  tree
830b3634f8SBarry Smith	-@echo "Completed compiling and running Fortran test examples"
840b3634f8SBarry Smith	-@echo "------------------------------------------"
8561523587SBarry Smith
8635ca7349SBarry Smith#
8711b6ed10SLois Curfman McInnes# Builds PETSc Fortran interface libary
8811b6ed10SLois Curfman McInnes# Note:	 libfast cannot run on .F files on certain machines, so we
8935ca7349SBarry Smith# use lib and check for errors here.
9083f0b094SBarry Smithfortran: chkpetsc_dir
91f4c0a52aSLois Curfman McInnes	-$(RM) -f $(PDIR)/libpetscfortran.a
920b3634f8SBarry Smith	-@echo "Beginning to compile Fortran interface library"
9326de76a5SSatish Balay	-@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)"
94fc939babSLois Curfman McInnes	-@echo "Using C/C++ compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
95fc939babSLois Curfman McInnes	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
96fc939babSLois Curfman McInnes	-@echo "Using configuration flags: $(CONF)"
97fc939babSLois Curfman McInnes	-@echo "Using include paths: $(PETSC_INCLUDE)"
980b3634f8SBarry Smith	-@echo "------------------------------------------"
99b16a3bb1SBarry Smith	-@cd src/fortran/custom; \
10035ca7349SBarry Smith	  $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \
10135ca7349SBarry Smith	  grep -v clog trashz | grep -v "information sections" | \
10235ca7349SBarry Smith	  egrep -i '(Error|warning|Can)' >> /dev/null;\
10335ca7349SBarry Smith	  if [ "$$?" != 1 ]; then \
10435ca7349SBarry Smith	  cat trashz ; fi; $(RM) trashz
105b16a3bb1SBarry Smith	-@cd src/fortran/auto; \
10635ca7349SBarry Smith	  $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) libfast
10783f0b094SBarry Smith	$(RANLIB) $(PDIR)/libpetscfortran.a
1080b3634f8SBarry Smith	-@echo "Completed compiling Fortran interface library"
1090b3634f8SBarry Smith	-@echo "------------------------------------------"
11083f0b094SBarry Smith
1118c37ef55SBarry Smithranlib:
1124e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
11361523587SBarry Smith
11411b6ed10SLois Curfman McInnes# Deletes PETSc libraries
11561523587SBarry Smithdeletelibs:
1164e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/*
117d44968ceSBarry Smith
11811b6ed10SLois Curfman McInnes# Deletes man pages (xman version)
119d44968ceSBarry Smithdeletemanpages:
1207857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/Keywords $(PETSC_DIR)/docs/man/man*/*
121d44968ceSBarry Smith
12211b6ed10SLois Curfman McInnes# Deletes man pages (HTML version)
123b346654fSBarry Smithdeletewwwpages:
124dea827f2SLois Curfman McInnes	$(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit \
125dea827f2SLois Curfman McInnes	         $(PETSC_DIR)/docs/www/man*.html
126b346654fSBarry Smith
12711b6ed10SLois Curfman McInnes# Deletes man pages (LaTeX version)
128b346654fSBarry Smithdeletelatexpages:
1297857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex
13020563c6bSBarry Smith
1317acb7333SLois Curfman McInnes# To access the tags in emacs, type M-x visit-tags-table and specify
1327acb7333SLois Curfman McInnes# the file petsc/TAGS.	Then, to move to where a PETSc function is
1337acb7333SLois Curfman McInnes# defined, enter M-. and the function name.  To search for a string
1347acb7333SLois Curfman McInnes# and move to the first occurrence, use M-x tags-search and the string.
1357acb7333SLois Curfman McInnes# To locate later occurrences, use M-,
1367acb7333SLois Curfman McInnes
13711b6ed10SLois Curfman McInnes# Builds all etags files
13811b6ed10SLois Curfman McInnesalletags:
1399ae7ee0fSLois Curfman McInnes	-make etags_complete
14011b6ed10SLois Curfman McInnes	-make etags
14111b6ed10SLois Curfman McInnes	-make etags_noexamples
14211b6ed10SLois Curfman McInnes	-make etags_makefiles
14311b6ed10SLois Curfman McInnes
14411b6ed10SLois Curfman McInnes# Builds the basic etags file.	This should be employed by most users.
14520563c6bSBarry Smithetags:
146edd2f0e1SBarry Smith	$(RM) TAGS
14770a6ad8cSBarry Smith	etags -f TAGS	 src/*/impls/*/*.h src/*/impls/*/*/*.h
148ba6aed2eSLois Curfman McInnes	etags -a -f TAGS src/*/examples/*.c src/*/examples/*/*.c
149531823f5SLois Curfman McInnes	etags -a -f TAGS src/*/*.h src/*/*/*.h src/*/interface/*.c
150bdec0fbfSBarry Smith	etags -a -f TAGS src/*/src/*.c src/*/impls/*/*.c
151749d9927SSatish Balay	etags -a -f TAGS src/*/impls/*/*/*.c  src/benchmarks/*.c
152cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/*.c src/contrib/*/src/*.c
153bec85862SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/examples/*.c
15470cf2eddSSatish Balay	etags -a -f TAGS src/contrib/*/src/*.h src/contrib/*/examples/*.F
15590ace30eSBarry Smith	etags -a -f TAGS include/*.h include/pinclude/*.h bmake/common
15690ace30eSBarry Smith	etags -a -f TAGS include/FINCLUDE/*.h
15770a6ad8cSBarry Smith	etags -a -f TAGS src/*/impls/*.c src/*/utils/*.c
1580de55854SLois Curfman McInnes	etags -a -f TAGS makefile src/*/src/makefile
1590de55854SLois Curfman McInnes	etags -a -f TAGS src/*/interface/makefile src/makefile
160f5354500SBarry Smith	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
1613ebb8ef7SBarry Smith	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
162da97394bSLois Curfman McInnes	etags -a -f TAGS src/*/examples/*/makefile src/*/examples/*/*/makefile
1633ebb8ef7SBarry Smith	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
164cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/makefile src/contrib/*/src/makefile
1652bf65771SLois Curfman McInnes	etags -a -f TAGS src/fortran/makefile src/fortran/auto/makefile
1662bf65771SLois Curfman McInnes	etags -a -f TAGS src/fortran/custom/makefile
167fea641f4SSatish Balay	etags -a -f TAGS include/makefile include/*/makefile
1684e627d3aSBarry Smith	etags -a -f TAGS bmake/common bmake/*/base*
169cfd69a58SBarry Smith	etags -a -f TAGS src/fortran/custom/*.c src/fortran/auto/*.c
170cfd69a58SBarry Smith	etags -a -f TAGS src/benchmarks/*.c src/fortran/custom/*.F
171cfd69a58SBarry Smith	etags -a -f TAGS src/*/examples/*.F src/*/examples/*.f
172da97394bSLois Curfman McInnes	etags -a -f TAGS src/*/examples/*/*.F src/*/examples/*/*.f
17328988994SBarry Smith	chmod g+w TAGS
174bfce26a3SBarry Smith
17529cdf679SBarry Smith# Builds complete etags list; only for PETSc developers.
17629cdf679SBarry Smithetags_complete:
17729cdf679SBarry Smith	$(RM) TAGS_COMPLETE
17829cdf679SBarry Smith	etags -f TAGS_COMPLETE	 src/*/impls/*/*.h src/*/impls/*/*/*.h
17929cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/examples/*.c src/*/examples/*/*.c
18029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/*.h src/*/*/*.h src/*/interface/*.c
18129cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/src/*.c src/*/impls/*/*.c
18229cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/impls/*/*/*.c  src/benchmarks/*.c
18329cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/*.c src/contrib/*/src/*.c
18429cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/examples/*.c
185cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/src/*.h
186cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/examples/*.F
18729cdf679SBarry Smith	etags -a -f TAGS_COMPLETE include/*.h include/pinclude/*.h bmake/common
18829cdf679SBarry Smith	etags -a -f TAGS_COMPLETE include/FINCLUDE/*.h
18929cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/impls/*.c src/*/utils/*.c
19029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE makefile src/*/src/makefile
19129cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/interface/makefile src/makefile
19229cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/impls/makefile src/*/impls/*/makefile
19329cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/utils/makefile src/*/examples/makefile
194cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/*/examples/*/makefile
195cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/*/examples/*/*/makefile
19629cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/makefile src/*/impls/*/*/makefile
197cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/makefile
198cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/src/makefile
19929cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/makefile src/fortran/auto/makefile
20029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/custom/makefile
20129cdf679SBarry Smith	etags -a -f TAGS_COMPLETE include/makefile include/*/makefile
20229cdf679SBarry Smith	etags -a -f TAGS_COMPLETE bmake/common bmake/*/base*
203cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/custom/*.c src/fortran/auto/*.c
204cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/benchmarks/*.c
205cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/*/examples/*.F src/*/examples/*.f
206cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/custom/*.F
207da97394bSLois Curfman McInnes	etags -a -f TAGS_COMPLETE src/*/examples/*/*.F src/*/examples/*/*.f
208cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/routin.tex
209cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/manual.tex
21029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/manual_tex.tex
211cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/intro.tex
212cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/part1.tex
21329cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/part2.tex
21429cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/intro.tex docs/makefile
21529cdf679SBarry Smith	chmod g+w TAGS_COMPLETE
21629cdf679SBarry Smith
21711b6ed10SLois Curfman McInnes# Builds the etags file that excludes the examples directories
218bfce26a3SBarry Smithetags_noexamples:
219bfce26a3SBarry Smith	$(RM) TAGS_NO_EXAMPLES
220bfce26a3SBarry Smith	etags -f TAGS_NO_EXAMPLES src/*/impls/*/*.h src/*/impls/*/*/*.h
221531823f5SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/*.h src/*/*/*.h src/*/interface/*.c
22264f8aa17SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/src/*.c  src/*/impls/*/*.c
2230429b4e3SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/impls/*/*/*.c
224cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/*.c src/contrib/*/src/*.c
225bec85862SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/src/*.h
22690ace30eSBarry Smith	etags -a -f TAGS_NO_EXAMPLES include/*.h include/pinclude/*.h
22790ace30eSBarry Smith	etags -a -f TAGS_NO_EXAMPLES include/FINCLUDE/*.h
228b16a3bb1SBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/common
229464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/impls/*.c src/*/utils/*.c
2300de55854SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES makefile src/*/src/makefile
2310de55854SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/interface/makefile src/makefile
232464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/impls/makefile src/*/impls/*/makefile
233464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/utils/makefile
234464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/makefile src/*/impls/*/*/makefile
235cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/makefile
236cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/src/makefile
237cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/makefile
238cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/auto/makefile
2392bf65771SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/fortran/custom/makefile
240fea641f4SSatish Balay	etags -a -f TAGS_NO_EXAMPLES include/makefile include/*/makefile
2414e627d3aSBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/common bmake/*/base*
2424c71ded4SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/auto/*.c
243cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/custom/*.c
244cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/custom/*.F
24572936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/routin.tex
24672936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/manual.tex
24772936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/intro.tex
24872936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/part1.tex
24972936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/part2.tex
250fea641f4SSatish Balay	etags -a -f TAGS_NO_EXAMPLES docs/makefile
251bfce26a3SBarry Smith	chmod g+w TAGS_NO_EXAMPLES
252b16a3bb1SBarry Smith
25311b6ed10SLois Curfman McInnes# Builds the etags file for makefiles
254b16a3bb1SBarry Smithetags_makefiles:
255b16a3bb1SBarry Smith	$(RM) TAGS_MAKEFILES
256b16a3bb1SBarry Smith	etags -a -f TAGS_MAKEFILES bmake/common
2570de55854SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES makefile src/*/src/makefile
2580de55854SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/interface/makefile src/makefile
259b16a3bb1SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/impls/makefile src/*/impls/*/makefile
2602328c152SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/utils/makefile src/*/interface/makefile
261b16a3bb1SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/makefile src/*/impls/*/*/makefile
262cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/examples/makefile
263cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/examples/*/makefile
264da97394bSLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/examples/*/*/makefile
265cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/fortran/makefile
266cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/fortran/auto/makefile
267cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/contrib/*/makefile
268cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/contrib/*/src/makefile
2692bf65771SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/fortran/custom/makefile
270fea641f4SSatish Balay	etags -a -f TAGS_MAKEFILES include/makefile include/*/makefile
2714e627d3aSBarry Smith	etags -a -f TAGS_MAKEFILES bmake/common bmake/*/base*
272fea641f4SSatish Balay	etags -a -f TAGS_MAKEFILES docs/makefile
273b16a3bb1SBarry Smith	chmod g+w TAGS_MAKEFILES
27411b6ed10SLois Curfman McInnes
27511b6ed10SLois Curfman McInnes# ------------------------------------------------------------------
27611b6ed10SLois Curfman McInnes#
27711b6ed10SLois Curfman McInnes# All remaining actions are intended for PETSc developers only.
27811b6ed10SLois Curfman McInnes# PETSc users should not generally need to use these commands.
27911b6ed10SLois Curfman McInnes#
28011b6ed10SLois Curfman McInnes
28111b6ed10SLois Curfman McInnes# Builds all versions of the man pages
282c3e30b67SBarry Smithallmanpages: deletemanpages allwwwpages alllatexpages
28311b6ed10SLois Curfman McInnes	-make ACTION=manpages tree
284c3e30b67SBarry Smith	-cd src/fortran/custom; make manpages
28571a4ef87SSatish Balay	-cd docs/man; catman -W .
286dea827f2SLois Curfman McInnesallwwwpages: deletewwwpages
287299192b9SLois Curfman McInnes	-make ACTION=wwwpages_buildcite tree
288c3e30b67SBarry Smith	-cd src/fortran/custom; make wwwpages_buildcite
289c3e30b67SBarry Smith	-cd src/fortran/custom; make wwwpages
290dea827f2SLois Curfman McInnes	-make ACTION=wwwpages tree
291dea827f2SLois Curfman McInnes	-maint/wwwman
292dccdf784SSatish Balay	-maint/examplesindex.tcl
293416022c9SBarry Smithalllatexpages: deletelatexpages
294416022c9SBarry Smith	-make ACTION=latexpages tree
295c3e30b67SBarry Smith	-cd src/fortran/custom; make latexpages
296416022c9SBarry Smith
29711b6ed10SLois Curfman McInnes# Builds Fortran stub files
29811b6ed10SLois Curfman McInnesallfortranstubs:
29935aab85fSBarry Smith	-@include/finclude/generateincludes
3004b0e389bSBarry Smith	-@$(RM) -f $(PETSC_DIR)/src/fortran/auto/*.c
30111b6ed10SLois Curfman McInnes	-make ACTION=fortranstubs tree
3024b0e389bSBarry Smith	chmod g+w $(PETSC_DIR)/src/fortran/auto/*.c
303f6ff2982SSatish Balay
304f6ff2982SSatish Balay
305f6ff2982SSatish Balay
306