mirror of
https://github.com/gnustep/tools-make.git
synced 2025-05-30 08:50:54 +00:00
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:
parent
59145cd5e8
commit
6ad876b5cc
1 changed files with 9 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue