xref: /petsc/makefile (revision c2c9bc36131301737c8dc103c1067f0bafb7d7c6)
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
772035b96SSatish 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)"
31*c2c9bc36SBarry Smith	-@echo "Using PETSc directory: $(PETSC_DIR)"
32*c2c9bc36SBarry Smith	-@echo "Using PETSc arch: $(PETSC_ARCH)"
330b3634f8SBarry Smith	-@echo "------------------------------------------"
34e35bd481SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
35f3848965SBarry Smith	   ACTION=libfast  tree
36aa45e91cSSatish Balay	-@cd $(PETSC_DIR)/src/sys/src ; $(OMAKE) PETSC_ARCH=$(PETSC_ARCH) rs6000_time
374e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
380b3634f8SBarry Smith	-@echo "Completed building libraries"
390b3634f8SBarry Smith	-@echo "------------------------------------------"
400b3634f8SBarry Smith
410b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture
420b3634f8SBarry Smithtestexamples: chkpetsc_dir
430b3634f8SBarry Smith	-@echo "Beginning to compile and run test examples"
4426de76a5SSatish Balay	-@echo "Using compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
45b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
46b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
47*c2c9bc36SBarry Smith	-@echo "Using PETSc directory: $(PETSC_DIR)"
48*c2c9bc36SBarry Smith	-@echo "Using PETSc arch: $(PETSC_ARCH)"
49*c2c9bc36SBarry Smith	-@echo "------------------------------------------"
509c69534bSBarry Smith	-@echo "Using linker: $(CLINKER)"
519c69534bSBarry Smith	-@echo "Using libraries: $(PETSC_LIB)"
520b3634f8SBarry Smith	-@echo "------------------------------------------"
53eb817c50SBarry Smith	-@echo "Due to different numerical round-off on certain"
54eb817c50SBarry Smith	-@echo "machines some of the numbers may not match exactly."
5531ca9999SBarry Smith	-@echo "------------------------------------------"
560b3634f8SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
570b3634f8SBarry Smith	   ACTION=testexamples_1  tree
580b3634f8SBarry Smith	-@echo "Completed compiling and running test examples"
590b3634f8SBarry Smith	-@echo "------------------------------------------"
600b3634f8SBarry Smith
610b3634f8SBarry Smith# Builds PETSc test examples for a given BOPT and architecture
628475343bSBarry Smithtestexamples_uni: chkpetsc_dir
638475343bSBarry Smith	-@echo "Beginning to compile and run uniprocessor test examples"
6426de76a5SSatish Balay	-@echo "Using compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
658475343bSBarry Smith	-@echo "Using linker: $(CLINKER)"
66b14e8f29SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
67b14e8f29SBarry Smith	-@echo "Using include paths: $(PETSC_INCLUDE)"
688475343bSBarry Smith	-@echo "Using libraries: $(PETSC_LIB)"
698475343bSBarry Smith	-@echo "------------------------------------------"
708475343bSBarry Smith	-@echo "Due to different numerical round-off on certain"
718475343bSBarry Smith	-@echo "machines some of the numbers may not match exactly."
728475343bSBarry Smith	-@echo "------------------------------------------"
738475343bSBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
748475343bSBarry Smith	   ACTION=testexamples_4  tree
758475343bSBarry Smith	-@echo "Completed compiling and running uniprocessor test examples"
768475343bSBarry Smith	-@echo "------------------------------------------"
778475343bSBarry Smith
788475343bSBarry Smith# Builds PETSc test examples for a given BOPT and architecture
790b3634f8SBarry Smithtestfortran: chkpetsc_dir
800b3634f8SBarry Smith	-@echo "Beginning to compile and run Fortran test examples"
8126de76a5SSatish Balay	-@echo "Using compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)"
829c69534bSBarry Smith	-@echo "Using linker: $(FLINKER)"
83cfd69a58SBarry Smith	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
849c69534bSBarry Smith	-@echo "Using libraries: $(PETSC_FORTRAN_LIB)  $(PETSC_LIB)"
850b3634f8SBarry Smith	-@echo "------------------------------------------"
860b3634f8SBarry Smith	-@$(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) \
870b3634f8SBarry Smith	   ACTION=testexamples_3  tree
880b3634f8SBarry Smith	-@echo "Completed compiling and running Fortran test examples"
890b3634f8SBarry Smith	-@echo "------------------------------------------"
9061523587SBarry Smith
9135ca7349SBarry Smith#
9211b6ed10SLois Curfman McInnes# Builds PETSc Fortran interface libary
9311b6ed10SLois Curfman McInnes# Note:	 libfast cannot run on .F files on certain machines, so we
9435ca7349SBarry Smith# use lib and check for errors here.
9583f0b094SBarry Smithfortran: chkpetsc_dir
96f4c0a52aSLois Curfman McInnes	-$(RM) -f $(PDIR)/libpetscfortran.a
970b3634f8SBarry Smith	-@echo "Beginning to compile Fortran interface library"
9826de76a5SSatish Balay	-@echo "Using Fortran compiler: $(FC) $(FFLAGS) $(FOPTFLAGS)"
99fc939babSLois Curfman McInnes	-@echo "Using C/C++ compiler: $(CC) $(CFLAGS) $(COPTFLAGS)"
100fc939babSLois Curfman McInnes	-@echo "Using PETSc flags: $(PETSCFLAGS) $(PCONF)"
101fc939babSLois Curfman McInnes	-@echo "Using configuration flags: $(CONF)"
102fc939babSLois Curfman McInnes	-@echo "Using include paths: $(PETSC_INCLUDE)"
1030b3634f8SBarry Smith	-@echo "------------------------------------------"
104b16a3bb1SBarry Smith	-@cd src/fortran/custom; \
10535ca7349SBarry Smith	  $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) lib > trashz 2>&1; \
10635ca7349SBarry Smith	  grep -v clog trashz | grep -v "information sections" | \
10735ca7349SBarry Smith	  egrep -i '(Error|warning|Can)' >> /dev/null;\
10835ca7349SBarry Smith	  if [ "$$?" != 1 ]; then \
10935ca7349SBarry Smith	  cat trashz ; fi; $(RM) trashz
110b16a3bb1SBarry Smith	-@cd src/fortran/auto; \
11135ca7349SBarry Smith	  $(OMAKE) BOPT=$(BOPT) PETSC_ARCH=$(PETSC_ARCH) libfast
11283f0b094SBarry Smith	$(RANLIB) $(PDIR)/libpetscfortran.a
1130b3634f8SBarry Smith	-@echo "Completed compiling Fortran interface library"
1140b3634f8SBarry Smith	-@echo "------------------------------------------"
11583f0b094SBarry Smith
1168c37ef55SBarry Smithranlib:
1174e04c1a0SBarry Smith	$(RANLIB) $(PDIR)/*.a
11861523587SBarry Smith
11911b6ed10SLois Curfman McInnes# Deletes PETSc libraries
12061523587SBarry Smithdeletelibs:
1214e04c1a0SBarry Smith	-$(RM) -f $(PDIR)/*.a $(PDIR)/complex/* $(PDIR)/c++/*
122d44968ceSBarry Smith
12311b6ed10SLois Curfman McInnes# Deletes man pages (xman version)
124d44968ceSBarry Smithdeletemanpages:
1257857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/Keywords $(PETSC_DIR)/docs/man/man*/*
126d44968ceSBarry Smith
12711b6ed10SLois Curfman McInnes# Deletes man pages (HTML version)
128b346654fSBarry Smithdeletewwwpages:
129dea827f2SLois Curfman McInnes	$(RM) -f $(PETSC_DIR)/docs/www/man*/* $(PETSC_DIR)/docs/www/www.cit \
130dea827f2SLois Curfman McInnes	         $(PETSC_DIR)/docs/www/man*.html
131b346654fSBarry Smith
13211b6ed10SLois Curfman McInnes# Deletes man pages (LaTeX version)
133b346654fSBarry Smithdeletelatexpages:
1347857610eSBarry Smith	$(RM) -f $(PETSC_DIR)/docs/tex/rsum/*sum*.tex
13520563c6bSBarry Smith
1367acb7333SLois Curfman McInnes# To access the tags in emacs, type M-x visit-tags-table and specify
1377acb7333SLois Curfman McInnes# the file petsc/TAGS.	Then, to move to where a PETSc function is
1387acb7333SLois Curfman McInnes# defined, enter M-. and the function name.  To search for a string
1397acb7333SLois Curfman McInnes# and move to the first occurrence, use M-x tags-search and the string.
1407acb7333SLois Curfman McInnes# To locate later occurrences, use M-,
1417acb7333SLois Curfman McInnes
14211b6ed10SLois Curfman McInnes# Builds all etags files
14311b6ed10SLois Curfman McInnesalletags:
1449ae7ee0fSLois Curfman McInnes	-make etags_complete
14511b6ed10SLois Curfman McInnes	-make etags
14611b6ed10SLois Curfman McInnes	-make etags_noexamples
14711b6ed10SLois Curfman McInnes	-make etags_makefiles
14811b6ed10SLois Curfman McInnes
14911b6ed10SLois Curfman McInnes# Builds the basic etags file.	This should be employed by most users.
15020563c6bSBarry Smithetags:
151edd2f0e1SBarry Smith	$(RM) TAGS
15270a6ad8cSBarry Smith	etags -f TAGS	 src/*/impls/*/*.h src/*/impls/*/*/*.h
153ffb43d28SLois Curfman McInnes	etags -a -f TAGS src/*/examples/*/*.c src/*/examples/*/*/*.c
154ffb43d28SLois Curfman McInnes	etags -a -f TAGS src/*/examples/*/*.F src/*/examples/*/*/*.F
155ffb43d28SLois Curfman McInnes	etags -a -f TAGS src/*/examples/*/*.f
156531823f5SLois Curfman McInnes	etags -a -f TAGS src/*/*.h src/*/*/*.h src/*/interface/*.c
157bdec0fbfSBarry Smith	etags -a -f TAGS src/*/src/*.c src/*/impls/*/*.c
158749d9927SSatish Balay	etags -a -f TAGS src/*/impls/*/*/*.c  src/benchmarks/*.c
159cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/*.c src/contrib/*/src/*.c
16073fdc502SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/examples/*/*.c src/contrib/*/examples/*/*.F
16173fdc502SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/src/*.h
16290ace30eSBarry Smith	etags -a -f TAGS include/*.h include/pinclude/*.h bmake/common
16390ace30eSBarry Smith	etags -a -f TAGS include/FINCLUDE/*.h
16470a6ad8cSBarry Smith	etags -a -f TAGS src/*/impls/*.c src/*/utils/*.c
1650de55854SLois Curfman McInnes	etags -a -f TAGS makefile src/*/src/makefile
1660de55854SLois Curfman McInnes	etags -a -f TAGS src/*/interface/makefile src/makefile
167f5354500SBarry Smith	etags -a -f TAGS src/*/impls/makefile src/*/impls/*/makefile
1683ebb8ef7SBarry Smith	etags -a -f TAGS src/*/utils/makefile src/*/examples/makefile
169da97394bSLois Curfman McInnes	etags -a -f TAGS src/*/examples/*/makefile src/*/examples/*/*/makefile
1703ebb8ef7SBarry Smith	etags -a -f TAGS src/*/makefile src/*/impls/*/*/makefile
171cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/makefile src/contrib/*/src/makefile
17273fdc502SLois Curfman McInnes	etags -a -f TAGS src/contrib/*/examples/makefile src/contrib/*/examples/*/makefile
1732bf65771SLois Curfman McInnes	etags -a -f TAGS src/fortran/makefile src/fortran/auto/makefile
1742bf65771SLois Curfman McInnes	etags -a -f TAGS src/fortran/custom/makefile
175fea641f4SSatish Balay	etags -a -f TAGS include/makefile include/*/makefile
1764e627d3aSBarry Smith	etags -a -f TAGS bmake/common bmake/*/base*
177cfd69a58SBarry Smith	etags -a -f TAGS src/fortran/custom/*.c src/fortran/auto/*.c
178cfd69a58SBarry Smith	etags -a -f TAGS src/benchmarks/*.c src/fortran/custom/*.F
17928988994SBarry Smith	chmod g+w TAGS
180bfce26a3SBarry Smith
18129cdf679SBarry Smith# Builds complete etags list; only for PETSc developers.
18229cdf679SBarry Smithetags_complete:
18329cdf679SBarry Smith	$(RM) TAGS_COMPLETE
18429cdf679SBarry Smith	etags -f TAGS_COMPLETE	  src/*/impls/*/*.h src/*/impls/*/*/*.h
185ffb43d28SLois Curfman McInnes	etags -a -f TAGS_COMPLETE src/*/examples/*/*.c src/*/examples/*/*/*.c
186ffb43d28SLois Curfman McInnes	etags -a -f TAGS_COMPLETE src/*/examples/*/*.F src/*/examples/*/*/*.F
187ffb43d28SLois Curfman McInnes	etags -a -f TAGS_COMPLETE src/*/examples/*/*.f
18829cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/*.h src/*/*/*.h src/*/interface/*.c
18929cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/src/*.c src/*/impls/*/*.c
19029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/impls/*/*/*.c  src/benchmarks/*.c
19129cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/*.c src/contrib/*/src/*.c
192cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/src/*.h
19373fdc502SLois Curfman McInnes	etags -a -f TAGS_COMPLETE src/contrib/*/examples/*/*.c src/contrib/*/examples/*/*.F
19429cdf679SBarry Smith	etags -a -f TAGS_COMPLETE include/*.h include/pinclude/*.h bmake/common
19529cdf679SBarry Smith	etags -a -f TAGS_COMPLETE include/FINCLUDE/*.h
19629cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/impls/*.c src/*/utils/*.c
19729cdf679SBarry Smith	etags -a -f TAGS_COMPLETE makefile src/*/src/makefile
19829cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/interface/makefile src/makefile
19929cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/impls/makefile src/*/impls/*/makefile
20029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/utils/makefile src/*/examples/makefile
201cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/*/examples/*/makefile
202cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/*/examples/*/*/makefile
20329cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/*/makefile src/*/impls/*/*/makefile
204cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/makefile
205cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/contrib/*/src/makefile
20673fdc502SLois Curfman McInnes	etags -a -f TAGS_COMPLETE src/contrib/*/examples/makefile
20773fdc502SLois Curfman McInnes	etags -a -f TAGS_COMPLETE src/contrib/*/examples/*/makefile
20829cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/makefile src/fortran/auto/makefile
20929cdf679SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/custom/makefile
21029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE include/makefile include/*/makefile
21129cdf679SBarry Smith	etags -a -f TAGS_COMPLETE bmake/common bmake/*/base*
212cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/custom/*.c src/fortran/auto/*.c
213cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/benchmarks/*.c
214cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE src/fortran/custom/*.F
215cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/routin.tex
216cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/manual.tex
21729cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/manual_tex.tex
218cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/intro.tex
219cfd69a58SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/part1.tex
22029cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/part2.tex
22129cdf679SBarry Smith	etags -a -f TAGS_COMPLETE docs/tex/manual/intro.tex docs/makefile
22229cdf679SBarry Smith	chmod g+w TAGS_COMPLETE
22329cdf679SBarry Smith
22411b6ed10SLois Curfman McInnes# Builds the etags file that excludes the examples directories
225bfce26a3SBarry Smithetags_noexamples:
226bfce26a3SBarry Smith	$(RM) TAGS_NO_EXAMPLES
227bfce26a3SBarry Smith	etags -f TAGS_NO_EXAMPLES src/*/impls/*/*.h src/*/impls/*/*/*.h
228531823f5SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/*.h src/*/*/*.h src/*/interface/*.c
22964f8aa17SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/src/*.c  src/*/impls/*/*.c
2300429b4e3SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/impls/*/*/*.c
231cd9cd4f0SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/*.c src/contrib/*/src/*.c
232bec85862SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/src/*.h
23390ace30eSBarry Smith	etags -a -f TAGS_NO_EXAMPLES include/*.h include/pinclude/*.h
23490ace30eSBarry Smith	etags -a -f TAGS_NO_EXAMPLES include/FINCLUDE/*.h
235b16a3bb1SBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/common
236464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/impls/*.c src/*/utils/*.c
2370de55854SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES makefile src/*/src/makefile
2380de55854SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/*/interface/makefile src/makefile
239464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/impls/makefile src/*/impls/*/makefile
240464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/utils/makefile
241464493b3SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/*/makefile src/*/impls/*/*/makefile
242cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/makefile
243cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/contrib/*/src/makefile
244cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/makefile
245cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/auto/makefile
2462bf65771SLois Curfman McInnes	etags -a -f TAGS_NO_EXAMPLES src/fortran/custom/makefile
247fea641f4SSatish Balay	etags -a -f TAGS_NO_EXAMPLES include/makefile include/*/makefile
2484e627d3aSBarry Smith	etags -a -f TAGS_NO_EXAMPLES bmake/common bmake/*/base*
2494c71ded4SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/auto/*.c
250cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/custom/*.c
251cfd69a58SBarry Smith	etags -a -f TAGS_NO_EXAMPLES src/fortran/custom/*.F
25272936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/routin.tex
25372936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/manual.tex
25472936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/intro.tex
25572936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/part1.tex
25672936c9dSBarry Smith	etags -a -f TAGS_NO_EXAMPLES docs/tex/manual/part2.tex
257fea641f4SSatish Balay	etags -a -f TAGS_NO_EXAMPLES docs/makefile
258bfce26a3SBarry Smith	chmod g+w TAGS_NO_EXAMPLES
259b16a3bb1SBarry Smith
26011b6ed10SLois Curfman McInnes# Builds the etags file for makefiles
261b16a3bb1SBarry Smithetags_makefiles:
262b16a3bb1SBarry Smith	$(RM) TAGS_MAKEFILES
263b16a3bb1SBarry Smith	etags -a -f TAGS_MAKEFILES bmake/common
2640de55854SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES makefile src/*/src/makefile
2650de55854SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/interface/makefile src/makefile
266b16a3bb1SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/impls/makefile src/*/impls/*/makefile
2672328c152SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/utils/makefile src/*/interface/makefile
268b16a3bb1SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/makefile src/*/impls/*/*/makefile
269cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/examples/makefile
270cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/*/examples/*/makefile
271da97394bSLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/*/examples/*/*/makefile
272cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/fortran/makefile
273cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/fortran/auto/makefile
274cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/contrib/*/makefile
275cfd69a58SBarry Smith	etags -a -f TAGS_MAKEFILES src/contrib/*/src/makefile
27673fdc502SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/contrib/*/examples/makefile
27773fdc502SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/contrib/*/examples/*/makefile
2782bf65771SLois Curfman McInnes	etags -a -f TAGS_MAKEFILES src/fortran/custom/makefile
279fea641f4SSatish Balay	etags -a -f TAGS_MAKEFILES include/makefile include/*/makefile
2804e627d3aSBarry Smith	etags -a -f TAGS_MAKEFILES bmake/common bmake/*/base*
281fea641f4SSatish Balay	etags -a -f TAGS_MAKEFILES docs/makefile
282b16a3bb1SBarry Smith	chmod g+w TAGS_MAKEFILES
28311b6ed10SLois Curfman McInnes
28411b6ed10SLois Curfman McInnes# ------------------------------------------------------------------
28511b6ed10SLois Curfman McInnes#
28611b6ed10SLois Curfman McInnes# All remaining actions are intended for PETSc developers only.
28711b6ed10SLois Curfman McInnes# PETSc users should not generally need to use these commands.
28811b6ed10SLois Curfman McInnes#
28911b6ed10SLois Curfman McInnes
29011b6ed10SLois Curfman McInnes# Builds all versions of the man pages
291c3e30b67SBarry Smithallmanpages: deletemanpages allwwwpages alllatexpages
29211b6ed10SLois Curfman McInnes	-make ACTION=manpages tree
293c3e30b67SBarry Smith	-cd src/fortran/custom; make manpages
29471a4ef87SSatish Balay	-cd docs/man; catman -W .
295dea827f2SLois Curfman McInnesallwwwpages: deletewwwpages
296299192b9SLois Curfman McInnes	-make ACTION=wwwpages_buildcite tree
297c3e30b67SBarry Smith	-cd src/fortran/custom; make wwwpages_buildcite
298c3e30b67SBarry Smith	-cd src/fortran/custom; make wwwpages
299dea827f2SLois Curfman McInnes	-make ACTION=wwwpages tree
300dea827f2SLois Curfman McInnes	-maint/wwwman
3019921e35aSSatish Balay	-maint/examplesindex.tcl -www
302416022c9SBarry Smithalllatexpages: deletelatexpages
303416022c9SBarry Smith	-make ACTION=latexpages tree
304c3e30b67SBarry Smith	-cd src/fortran/custom; make latexpages
305416022c9SBarry Smith
30611b6ed10SLois Curfman McInnes# Builds Fortran stub files
30711b6ed10SLois Curfman McInnesallfortranstubs:
30835aab85fSBarry Smith	-@include/finclude/generateincludes
3094b0e389bSBarry Smith	-@$(RM) -f $(PETSC_DIR)/src/fortran/auto/*.c
31011b6ed10SLois Curfman McInnes	-make ACTION=fortranstubs tree
3114b0e389bSBarry Smith	chmod g+w $(PETSC_DIR)/src/fortran/auto/*.c
312f6ff2982SSatish Balay
313f6ff2982SSatish Balay
314f6ff2982SSatish Balay
315