From 6ad876b5cc1f99ebb5981ce4ae2b9485461af25f Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Mon, 19 Mar 2001 14:15:58 +0000 Subject: [PATCH] Test the RPM_TOPDIR is non null before starting to generate the rpm git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@9453 72102866-910b-0410-8b05-ffd578937521 --- GNUmakefile.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/GNUmakefile.in b/GNUmakefile.in index 5691a1d8..9109c47c 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -186,7 +186,14 @@ tgz: mv gnustep-make-$(GNUSTEP_MAKE_VERSION) $$SNAPSHOT_DIR; \ fi; -rpm: tgz +test-RPM_TOPDIR: + @(if [ -z "$(RPM_TOPDIR)" ]; then \ + echo "Error - RPM_TOPDIR variable not set."; \ + echo "You need to set it to the top of your rpm directory tree"; \ + exit 1; \ + fi) + +rpm: test-RPM_TOPDIR tgz cp ../gnustep-make-$(GNUSTEP_MAKE_VERSION).tar.gz $(RPM_TOPDIR)/SOURCES/ cp gnustep-make.spec $(RPM_TOPDIR)/SPECS/ cd $(RPM_TOPDIR)/SPECS/ @@ -222,4 +229,4 @@ gnustep-make.spec: gnustep-make.spec.in $(SHELL) config.status executable.template: executable.template.in - $(SHELL) config.status \ No newline at end of file + $(SHELL) config.status