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
This commit is contained in:
Nicola Pero 2001-03-19 14:15:58 +00:00
parent 59145cd5e8
commit 6ad876b5cc

View file

@ -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
$(SHELL) config.status