|
From: <za...@us...> - 2006-03-17 22:51:33
|
Revision: 8 Author: zaufi Date: 2006-03-17 14:51:28 -0800 (Fri, 17 Mar 2006) ViewCVS: http://svn.sourceforge.net/halfs/?rev=8&view=rev Log Message: ----------- refactoring configration support Modified Paths: -------------- halfs/trunk/Makefile.cvs Modified: halfs/trunk/Makefile.cvs =================================================================== --- halfs/trunk/Makefile.cvs 2006-03-12 15:36:08 UTC (rev 7) +++ halfs/trunk/Makefile.cvs 2006-03-17 22:51:28 UTC (rev 8) @@ -1,19 +1,16 @@ # -# $Header: /cvsroot/halfs/halfs/Makefile.cvs,v 1.2 2006/01/17 00:18:19 zaufi Exp $ +# $Header: /a/c-repository/session-builder/Makefile.cvs,v 1.5 2006/03/17 13:21:37 alex Exp $ # # This file for CVS version only. # -MAINTAINER_TARGETS = major-release minor-release patch-release \ - next-major-beta next-minor-beta next-patch-beta \ - next-major-rc next-minor-rc next-patch-rc \ - release next-beta next-rc report-version \ - next-major-branch next-minor-branch \ - cvs-reconf full-reconf simple-reconf \ - cvs-clean code-stats scan-includes ChangeLog -admindir = admin +admindir = admin +MAINTAINER_TARGETS = $(shell grep -h print_target_help $(admindir)/devel.d/*.tgt.sh | sed -e "s,^.*'\(.*\)'\s\+'.*$$,\1," -e 's,_,-,g') -all: cvs-reconf ; +# +# Set 'default' target to 'bootstrap' -- we know that such target exists ;) +# +all: bootstrap ; # # Wrapped rules @@ -21,47 +18,23 @@ $(MAINTAINER_TARGETS): @admindir=$(admindir); \ if test "x$$admindir" = x; then \ - admindir=.; until test -f $$admindir/admin/cvs.sh; do \ + admindir=.; until test -f $$admindir/admin/devel.sh; do \ admindir=$$admindir/..; \ if test `cd $$admindir && pwd` = / ; then break; fi; \ done; \ admindir=$$admindir/admin; \ - if test ! -f $$admindir/cvs.sh; then \ + if test ! -f $$admindir/devel.sh; then \ echo "Can't find the admin/ directory in any parent of the current directory."; \ echo "Please set it with admindir=..."; \ exit 1; \ fi; \ fi; \ - echo "make[$(MAKELEVEL)]: $($(addsuffix _desc,$(subst -,_,$@)))"; \ - WANT_AUTOCONF_2_5=1 admindir=$$admindir $(SHELL) $$admindir/cvs.sh $@ + WANT_AUTOCONF_2_5=1 admindir=$$admindir $(SHELL) $$admindir/devel.sh $(@) -.DEFAULT help: +.DEFAULT: @test "$@" = "help" || \ echo -e "make: *** No rule to make target \`$@'. Stop." @echo "Use one of the following maintainer targets:" - @echo -e '$(foreach t,$(MAINTAINER_TARGETS),\t$(t)\033[28G$($(addsuffix _desc, $(subst -,_,$(t))))\n)' + @$(MAKE) -f $(MAKEFILE_LIST) help -major_release_desc = Start next major generation with release (x++.0.0) -minor_release_desc = Start next minor generation with release (x.y++.0) -patch_release_desc = Start next patch generation with release (x.y.z++) -next_major_beta_desc = Start next major generation with beta1 version (x++.0.0-beta1) -next_minor_beta_desc = Start next minor generation with beta1 version (x.y++.0-beta1) -next_patch_beta_desc = Start next patch generation with beta1 version (x.y.z++-beta1) -next_major_rc_desc = Start next major generation with RC1 extra version (x++.0.0-rc1) -next_minor_rc_desc = Start next minor generation with RC1 extra version (x.y++.0-rc1) -next_patch_rc_desc = Start next patch generation with RC1 extra version (x.y.z++-rc1) -release_desc = Drop extra version info (i.e. x.y.z-[beta|rc]N --> x.y.z) -next_beta_desc = Increment current beta number (x.y.z-betaN++) -next_rc_desc = Increment current RC number (x.y.z-betaN --> x.y.z-rc1 or x.y.z-rcN++) -report_version_desc = Just report current version -next_major_branch_desc = Make a branch for next major version (x++.0) /will not change current version/ -next_minor_branch_desc = Make a branch for next minor version (x.y++) /will not change current version/ -cvs_reconf_desc = Run autotools and friends (this is default goal) -full_reconf_desc = Like 'cvs-reconf' + run configure in $$(top_srcdir)/build -simple_reconf_desc = Like 'cvs-reconf' + run configure -cvs_clean_desc = Remove all files and dirs not registered in CVS -code_stats_desc = Collect some code statiscis (very simple ;) -scan_includes_desc = Rescan source files and show list of external included files -ChangeLog_desc = Update ChangeLog and commit it to CVS - -.PHONY: $(MAINTAINER_TARGETS) help +.PHONY: $(MAINTAINER_TARGETS) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |