aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-09-28 09:54:36 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-09-28 09:54:36 +0000
commitdee5a0fbc3b052e20b3646b02d85c2678c483387 (patch)
treeb01bf2466aaadbaafddd96ad00d980a7ba3ae58d /Makefile.PL
parent77c467255c766a1bcc99e7f75a89fad1bde3c835 (diff)
downloadrpmtools-dee5a0fbc3b052e20b3646b02d85c2678c483387.tar
rpmtools-dee5a0fbc3b052e20b3646b02d85c2678c483387.tar.gz
rpmtools-dee5a0fbc3b052e20b3646b02d85c2678c483387.tar.bz2
rpmtools-dee5a0fbc3b052e20b3646b02d85c2678c483387.tar.xz
rpmtools-dee5a0fbc3b052e20b3646b02d85c2678c483387.zip
Remove obsolete code
Diffstat (limited to 'Makefile.PL')
-rw-r--r--Makefile.PL9
1 files changed, 2 insertions, 7 deletions
diff --git a/Makefile.PL b/Makefile.PL
index ec5190d..8e7cb7f 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,13 +1,11 @@
# $Id$
-# use 5.008;
use ExtUtils::MakeMaker;
use MDK::Common qw(cat_);
(my $rpmtools_version) = cat_('rpmtools.spec') =~ /define\s+version\s+(\d+\.\d+\.\d+)/
or die "no version found\n";
-
my $tag_version = "v$rpmtools_version";
$tag_version =~ s/\./_/g;
@@ -16,10 +14,10 @@ sub MY::postamble {
.PHONY: ChangeLog
\$(FROMCC): %: %.cc
- \$(CXX) \$(CCFLAGS) \$(OPTIMIZE) -DVERSION_STRING=\\"\$(RPMTOOLSVERSION)\\" \$< \$(LIBRPM) \$(INCRPM) \$(DEFRPM) -o \$@
+ \$(CXX) \$(CCFLAGS) \$(OPTIMIZE) -DVERSION_STRING=\\"\$(RPMTOOLSVERSION)\\" \$< \$(LIBRPM) \$(INCRPM) -o \$@
\$(FROMC): %: %.c
- \$(CC) \$(CCFLAGS) \$(OPTIMIZE) -DVERSION_STRING=\\"\$(RPMTOOLSVERSION)\\" \$< \$(LIBRPM) \$(INCRPM) \$(DEFRPM) -o \$@
+ \$(CC) \$(CCFLAGS) \$(OPTIMIZE) -DVERSION_STRING=\\"\$(RPMTOOLSVERSION)\\" \$< \$(LIBRPM) \$(INCRPM) -o \$@
buildc: \$(FROMC) \$(FROMCC)
@@ -37,9 +35,7 @@ rpm: dist
tag:
cvs tag $tag_version
-
MAKEMAKEFILE
-
}
WriteMakefile(
@@ -51,7 +47,6 @@ WriteMakefile(
FROMCC => '#gendepslist2 hdlist2names hdlist2files hdlist2prereq hdlist2groups',
LIBRPM => '-lrpm -lrpmio -lrpmdb -lrpmbuild -lz -lbz2 -lpopt',
INCRPM => '-I/usr/include/rpm',
- DEFRPM => '-DRPM_42',
},
depend => {
clean_subdirs => 'cleanc',