Remove RPMCONFIGDIR sedding from Makefiles where no longer necessary
authorPanu Matilainen <pmatilai@redhat.com>
Sat, 22 Nov 2008 16:00:10 +0000 (18:00 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Sat, 22 Nov 2008 16:10:23 +0000 (18:10 +0200)
scripts/Makefile.am
tests/Makefile.am

index 2c7ba3a..d4b1416 100644 (file)
@@ -36,24 +36,21 @@ rpmconfig_SCRIPTS = \
 
 rpmconfig_SCRIPTS += macros.perl
 macros.perl: $(srcdir)/macros.perl.in
-       @sed \
-         -e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir),g" \
+       @cat \
          < $(srcdir)/macros.perl.in > macros.perl
 CLEANFILES += macros.perl
 EXTRA_DIST += macros.perl.in
 
 rpmconfig_SCRIPTS += macros.php
 macros.php: $(srcdir)/macros.php.in
-       @sed \
-         -e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir),g" \
+       @cat \
          < $(srcdir)/macros.php.in > macros.php
 CLEANFILES += macros.php
 EXTRA_DIST += macros.php.in
 
 rpmconfig_SCRIPTS += macros.python
 macros.python: $(srcdir)/macros.python.in
-       @sed \
-         -e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir),g" \
+       @cat \
          < $(srcdir)/macros.python.in > macros.python
 CLEANFILES += macros.python
 EXTRA_DIST += macros.python.in
index 212f735..6adf6df 100644 (file)
@@ -70,54 +70,14 @@ atlocal:    atlocal.in Makefile
 DISTCLEANFILES = atlocal
 EXTRA_DIST += atlocal.in
 
-## Create a customized rpmrc
-rpmrc: $(top_srcdir)/rpmrc.in
-       @sed \
-         -e "s,[@]RPMCONFIGDIR[@],`pwd`/testing$(rpmconfigdir),g" \
-         -e "s,[@]SYSCONFIGDIR[@],`pwd`/testing$(sysconfdir)/rpm,g" \
-         -e "s,:~/.rpmmacros,," \
-       < $(top_srcdir)/rpmrc.in > rpmrc.tmp \
-       && ( cd $(top_builddir) && ./config.status --file=${subdir}/rpmrc:${subdir}/rpmrc.tmp )
-CLEANFILES += rpmrc rpmrc.tmp
-
-## Create a customized macros
-macros.in:     $(top_srcdir)/macros.in Makefile
-       @sed \
-         -e "s,[@]RPMCONFIGDIR[@],`pwd`/testing$(rpmconfigdir),g" \
-       < $(top_srcdir)/macros.in > macros.in
-CLEANFILES += macros.in
-
-
-## Create a customized rpmpopt
-rpmpopt.in:    $(top_srcdir)/rpmpopt.in Makefile
-       @sed \
-         -e "s,[@]RPMCONFIGDIR[@],`pwd`/testing$(rpmconfigdir),g" \
-       < $(top_srcdir)/rpmpopt.in > rpmpopt.in
-CLEANFILES += rpmpopt.in
-
-
 # Hack: Abusing testing$(bindir)/rpmbuild as stamp file
 testing$(bindir)/rpmbuild: ../rpmbuild
        rm -rf testing
        (cd ${top_builddir} && \
                  $(MAKE) DESTDIR=`pwd`/${subdir}/testing install)
 
-testing$(rpmconfigdir)/rpmrc: rpmrc testing$(bindir)/rpmbuild
-       $(INSTALL_DATA) rpmrc testing$(rpmconfigdir)/rpmrc
-
-testing$(rpmconfigdir)/macros: macros.in testing$(bindir)/rpmbuild
-       (cd ${top_builddir} && \
-         ./config.status --file=${subdir}/testing$(rpmconfigdir)/macros:${subdir}/macros.in)
-
-testing$(rpmconfigdir)/rpmpopt-@VERSION@: rpmpopt.in testing$(bindir)/rpmbuild
-       (cd ${top_builddir} && \
-         ./config.status --file=${subdir}/testing$(rpmconfigdir)/rpmpopt-@VERSION@:${subdir}/rpmpopt.in)
-
 check_DATA = atconfig atlocal $(TESTSUITE)
 check_DATA += testing$(bindir)/rpmbuild
-check_DATA += testing$(rpmconfigdir)/rpmrc
-check_DATA += testing$(rpmconfigdir)/macros
-check_DATA += testing$(rpmconfigdir)/rpmpopt-@VERSION@
 
 check-local: $(check_DATA)
        $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS) ||: