Set PACKAGE_* variables in Master/rules.make. Use unnamed-package when

a PACKAGE_NAME is not specified.  Use 0.0.1 when a PACKAGE_VERSION is not
specified.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@18948 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Nicola Pero 2004-03-29 11:45:40 +00:00
parent 4d40879178
commit 81c56e1c3a
3 changed files with 22 additions and 2 deletions

View file

@ -1,3 +1,11 @@
Mon Mar 29 12:41:58 2004 Nicola Pero <n.pero@mi.flashnet.it>
* Master/rules.make (PACKAGE_NAME): Set it here; set it to
unnamed-package if not set.
(PACKAGE_VERSION): Set it to 0.0.1 if not set.
* Master/source-distribution.make (PACKAGE_NAME): Do not set it
here.
Mon Mar 29 12:19:38 2004 Nicola Pero <n.pero@mi.flashnet.it>
* Version: Do not define VERSION.

View file

@ -383,11 +383,25 @@ fi
# Now rules for packaging - all automatically included
#
PACKAGE_NAME := $(strip $(PACKAGE_NAME))
ifeq ($(PACKAGE_NAME),)
# Use a default of unnamed-package if nothing better is provided.
PACKAGE_NAME := unnamed-package
endif
# For backwards compatibility, take value of PACKAGE_VERSION from
# VERSION. New GNUmakefiles should all use the PACKAGE_VERSION
# variable rather than the VERSION variable.
ifeq ($(PACKAGE_VERSION),)
PACKAGE_VERSION = $(VERSION)
# Use a default of 0.0.1 if nothing better is provided.
ifeq ($(PACKAGE_VERSION),)
PACKAGE_VERSION = 0.0.1
endif
endif
#

View file

@ -57,8 +57,6 @@
# all files (/directories) you want to exclude from distribution.
#
PACKAGE_NAME := $(strip $(PACKAGE_NAME))
ifeq ($(CVS_MODULE_NAME),)
CVS_MODULE_NAME = $(PACKAGE_NAME)
endif