mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Fixed make distclean for autogsdoc's documentation which wasn't cleaning anything
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@19211 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1752eebc58
commit
c6ce9cb78f
2 changed files with 31 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Apr 29 14:04:61 2004 Nicola Pero <n.pero@mi.flashnet.it>
|
||||
|
||||
* Instance/Documentation/autogsdoc.make (internal-doc-distclean):
|
||||
Added rule, to make sure a 'make distclean' actually cleans.
|
||||
|
||||
2004-04-27 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* clean_os.sh: Report netbsd1.6* and netbsd2* as netbsdelf.
|
||||
|
|
|
@ -35,7 +35,16 @@ INTERNAL_AGSDOCFLAGS += $(AGSDOC_FLAGS)
|
|||
|
||||
internal-doc-all_:: $(GNUSTEP_INSTANCE)/stamp
|
||||
|
||||
-include $(GNUSTEP_INSTANCE)/dependencies
|
||||
# The following include causes $(GNUSTEP_INSTANCE)/dependencies to be
|
||||
# regenerated if not there, which causes the documentation to be
|
||||
# potentially regenerated any time this makefile fragment is read.
|
||||
# (NB: This is terrifically inefficient and slow. Eg, ideally no
|
||||
# process should be spawned at all if you do a 'make clean' and the
|
||||
# system is already clean - other project types often get to the point
|
||||
# they don't even need to spawn a submake invocation, and so are
|
||||
# really fast, while autogsdoc might need to rebuild everything before
|
||||
# being able to clean it!)
|
||||
-include $(GNUSTEP_INSTANCE)/dependencies
|
||||
|
||||
$(GNUSTEP_INSTANCE):
|
||||
$(ECHO_CREATING)$(MKDIRS) $@$(END_ECHO)
|
||||
|
@ -64,6 +73,22 @@ internal-doc-clean::
|
|||
$(ECHO_NOTHING)$(AUTOGSDOC) $(INTERNAL_AGSDOCFLAGS) -Clean YES $(AGSDOC_FILES)$(END_ECHO)
|
||||
-$(ECHO_NOTHING)rm -Rf $(GNUSTEP_INSTANCE)$(END_ECHO)
|
||||
|
||||
# 'make distclean' will cause the 'clean' rules to be executed in a first
|
||||
# invocation, then the 'distclean' rules in a second invocation.
|
||||
#
|
||||
# The first run of 'make clean' builds the documentation if not there,
|
||||
# and then deletes it.
|
||||
#
|
||||
# Unfortunately the 'make distclean' implicitly rebuilds the
|
||||
# documentation again.
|
||||
#
|
||||
# So here we delete it yet another time, so at least after a 'make
|
||||
# distclean' the directory tree is clean, never mind you might be
|
||||
# building then deleting the documentation twice in the process. ;-)
|
||||
#
|
||||
internal-doc-distclean::
|
||||
-rm -Rf $(GNUSTEP_INSTANCE)
|
||||
|
||||
else
|
||||
|
||||
internal-doc-all_::
|
||||
|
|
Loading…
Reference in a new issue