$(TOPDIR), make: Add support for mkspec_wrapper.sh and dependencies

This commit is contained in:
Jan Lindemann 2002-07-10 16:15:46 +00:00 committed by Jan Lindemann
commit b49572da88
5 changed files with 14 additions and 2 deletions

View file

@ -63,10 +63,15 @@ cpmod.dist:
done
touch $@
ifneq ($(RPM_REQUIRED),)
RPM_REQUIRED_FLAG = "-R $(RPM_REQUIRED)"
endif
cpfiles.dist:
mkdir -p $(DIST_SRC_DIR)
cp Makefile $(DIST_SRC_DIR)
sh $(MKSPEC_SH) -V $(RPM_VERSION) -S $(notdir $(PCKG_TAR)) -N $(RPM_PROJECT) > $(DIST_SRC_DIR)/$(RPM_PROJECT)-$(RPM_VERSION).spec
sh $(MKSPEC_SH) -V $(RPM_VERSION) -S $(notdir $(PCKG_TAR)) -N $(RPM_PROJECT) $(RPM_REQUIRED_FLAG) \
> $(DIST_SRC_DIR)/$(RPM_PROJECT)-$(RPM_VERSION).spec
echo $(RPM_VERSION) > $(DIST_SRC_DIR)/VERSION
touch $@