Added the 'make cleandepend' target to the build system.

This commit is contained in:
Don BURNS 2002-04-12 05:06:41 +00:00
parent 6ed233d0d2
commit dfc9e9587b
2 changed files with 46 additions and 34 deletions

View File

@ -17,38 +17,42 @@ The following targets can be used with any subsystem as well as the top
level build (build in the OSG Root directory). Note that debug versions
and optimized version of targets reside in parallel.
make - Same as 'make opt'
make opt - Makes optimized versions of all targets
make debug - Makes debug versions of all targets.
make clean - Removes all object files (both optimized and debug
versions)
make cleanopt - Removes optimized version of object files
make cleandbg - Removes debug version of object files
make cleanlite - Removes only targets but leaves object files (both
optimized and debug versions)
make cleanliteopt - Removes only optimized targets but leaves optimized
objects files.
make cleanlitedbg - Removes only debug targets but leaves debug object
files
make clobber - Removes object files and targets (both optimized and
debug versions)
make clobberopt - Removes optimized object files and targets
make clobberdbg - Removes debug object files and targets
make beautify - Pretty print C++ files
make docs - Builds documentation database for current target
make depend - Force a rebuild of the dependency file. Note that
dependency files are generated automatically during
builds.
make - Same as 'make opt'
make opt - Makes optimized versions of all targets
make debug - Makes debug versions of all targets.
make clean - Removes all object files (both optimized and debug
versions)
make cleanopt - Removes optimized version of object files
make cleandbg - Removes debug version of object files
make cleandepend - Removes Makedepend file (both optimized and debug
versions)
make cleandependopt - Removes optimized version Makedepend file
make cleandependdbg - Removes debug version Makedepend file
make cleantarget - Removes only targets but leaves object files (both
optimized and debug versions)
make cleantargetopt - Removes only optimized targets but leaves optimized
objects files.
make cleantargetdbg - Removes only debug targets but leaves debug object
files
make clobber - Removes object files and targets (both optimized and
debug versions)
make clobberopt - Removes optimized object files and targets
make clobberdbg - Removes debug object files and targets
make beautify - Pretty print C++ files
make docs - Builds documentation database for current target
make depend - Force a rebuild of the dependency file. Note that
dependency files are generated automatically during
builds.
Solars and IRIX can build 64 bit targets. These require the ARCH=64 argument.
For example:
make ARCH=64 - Same as 'make ARCH=64 opt'
make ARCH=64 opt - Builds 64 bit optimized targets
make ARCH=64 debug - Builds 64 bit debug versions of targets
make ARCH=64 clean - Removes all 64 bit object files (both optimized and
debug versions).
make ARCH=64 - Same as 'make ARCH=64 opt'
make ARCH=64 opt - Builds 64 bit optimized targets
make ARCH=64 debug - Builds 64 bit debug versions of targets
make ARCH=64 clean - Removes all 64 bit object files (both optimized and
debug versions).
etc.

View File

@ -9,21 +9,31 @@ debug : $(EXEC:=.dbg)\
$(LIB:=.dbg)\
$(PLUGIN:=.dbg)\
cleanlite : cleanliteopt cleanlitedbg
cleandepend : cleandependopt cleandependdbg
cleanliteopt :
cleandependopt :
@[ -d $(OPTDIR) ] && cd $(OPTDIR); rm -f Makedepend
cleandependdbg :
@[ -d $(DEBUGDIR) ] && cd $(DEBUGDIR); rm -f Makedepend
cleantarget : cleantargetopt cleantargetdbg
cleantargetopt :
@[ -d $(OPTDIR) ] && cd $(OPTDIR); rm -f $(EXEC) $(LIB) $(PLUGIN)
cleanlitedbg :
cleantargetdbg :
@[ -d $(DEBUGDIR) ] && cd $(DEBUGDIR); rm -f $(EXEC) $(LIB) $(PLUGIN)
clean : cleanopt cleandbg
cleanopt :
@[ -d $(OPTDIR) ] && cd $(OPTDIR); rm -f $(OBJS) $(MAKEDEPEND)
@[ -d $(OPTDIR) ] && cd $(OPTDIR); rm -f $(OBJS) Makedepend
cleandbg :
@[ -d $(DEBUGDIR) ] && cd $(DEBUGDIR); rm -f $(OBJS) $(MAKEDEPEND)
@[ -d $(DEBUGDIR) ] && cd $(DEBUGDIR); rm -f $(OBJS) Makedepend
clobber : clobberdbg clobberopt
clobberopt :
rm -rf $(OPTDIR)
@ -31,8 +41,6 @@ clobberopt :
clobberdbg :
rm -rf $(DEBUGDIR)
clobber : clobberdbg clobberopt
beautify :
for f in *.cpp ; do mv $$f $$f.bak; bcpp $$f.bak $$f; rm $$f.bak; done