Added a "rpm" target so you can just do "make rpm" and it should do

the right thing


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2001-05-25 07:01:32 +00:00
parent 0f7deca925
commit 862fed9394

View File

@ -1346,3 +1346,18 @@ clean:
$(RM) ./lib/lib*
cleanall: clean
RPMTOP=_dist_dir/_rpm_top
rpm: dist
@echo "*** Building RPMs ***"
-mkdir $(RPMTOP)
-mkdir $(RPMTOP)/SOURCES
-mkdir $(RPMTOP)/SPECS
-mkdir $(RPMTOP)/BUILD
-mkdir $(RPMTOP)/RPMS
-mkdir $(RPMTOP)/SRPMS
cp -f $(WXARCHIVE) $(RPMTOP)/SOURCES
rpm -ba --define "_topdir `pwd`/$(RPMTOP)" $(WXDIR)/wx$(TOOLKIT).spec
mv -f `find $(RPMTOP) -name "wx$(TARGET)*.rpm"` .