# # $Id$ # include rules.mk include version.mk SUBDIRS = libp++ runtime lib compiler INSTALL_SUBDIRS = $(SUBDIRS) DISTFILES = Makefile config.functions rules.mk DISTFILES += version.mk spec.in DISTFILES += ChangeLog all:: @echo All done. bootstrap: all $(MAKE) -C bootstrap bootstrap \ TOPDIR=$(TOPDIR)/.. INSTALL_DIR=$(INSTALL_DIR) \ CURRENTDIR=$(CURRENTDIR)/bootstrap DISTNAME="$(DISTNAME)" dist:: rm -rf $(ARCHIVEDIR) mkdir $(ARCHIVEDIR) cp -dpPr `cat $(DISTLIST)` $(ARCHIVEDIR)/ tar cvzf $(ARCHIVENAME) $(ARCHIVEDIR)/* rm -rf $(ARCHIVEDIR) snapshot:: rm -rf $(SNAPSHOTDIR) mkdir $(SNAPSHOTDIR) cp -dpPr `cat $(DISTLIST)` $(SNAPSHOTDIR)/ tar cvzf $(SNAPSHOTNAME) $(SNAPSHOTDIR)/* rm -rf $(SNAPSHOTDIR) $(PKGNAME).spec: spec.in NAME="$(PKGNAME)" \ VERSION="$(PKGVERSION)" \ RELEASE="$(PKGRELEASE)" \ ARCHIVEDIR="$(ARCHIVEDIR)" \ . $< >$@ $(PKGNAME)-snapshot.spec: spec.in NAME="$(PKGNAME)-snapshot" \ VERSION="$(SNAPSHOTDATE)" \ RELEASE="$(PKGRELEASE)" \ ARCHIVEDIR="$(SNAPSHOTDIR)" \ . $< >$@ .rpmmacros: { \ echo "%_fixperms chmod -R a+rX,u+w,g-w,o-w"; \ echo "%_topdir `pwd`"; \ echo "%_rpmdir `pwd`"; \ echo "%_srcrpmdir `pwd`"; \ echo "%_builddir `pwd`"; \ echo "%_sourcedir `pwd`"; \ echo "%_specdir `pwd`"; \ echo "%_rpmfilename %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm"; \ } >$@ rpm: $(PKGNAME).spec .rpmmacros all dist HOME=`pwd` rpm -ba $< rm -rf $(BUILDROOT) snaprpm: $(PKGNAME)-snapshot.spec .rpmmacros all snapshot HOME=`pwd` rpm -ba $< rm -rf $(BUILDROOT) install:: all mkdir -p -m 0755 $(INSTALL_DIR)/bin install -m 0755 rfp.sh $(INSTALL_DIR)/bin/ mkdir -p -m 0755 $(INSTALL_DIR)/include cp -rf include/refal $(INSTALL_DIR)/include/ mkdir -p -m 0755 $(INSTALL_DIR)/lib/refal-plus cp -rf ../lib/* $(INSTALL_DIR)/lib/refal-plus/ clean:: rm -f .rpmrc *.spec *.list rfp.sh config.mk