# Create the rules that create RPM and SRPM files push(@text, qq{ rpm: \$(SPECFILE) \$(DISTVNAME).tar\$(SUFFIX) \t\$(RPM) -bb --clean --rcfile rpmrc \$(SPECFILE) srpm: \$(SPECFILE) \$(DISTVNAME).tar\$(SUFFIX) \t\$(RPM) -bs --clean --rcfile rpmrc \$(SPECFILE) }); # Create the dependancy rules for the methods/XPL files for (sort grep(/\.xpl$/, keys %::PM_FILES)) { s/\.xpl$//; push(@text, "$_.xpl: $_.base $_.help $_.code"); } join("\n", @text);