[postgis-tickets] [PostGIS] #5477: distclean target fails (No rule to make target 'local-clean'.)
PostGIS
trac at osgeo.org
Sun Aug 13 23:56:06 PDT 2023
#5477: distclean target fails (No rule to make target 'local-clean'.)
-----------------------------------+---------------------------
Reporter: Bas Couwenberg | Owner: strk
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 3.4.0
Component: build/upgrade/install | Version: master
Keywords: |
-----------------------------------+---------------------------
`make distclean` fails:
{{{
rule=distclean; \
for lang in it_IT pt_BR fr es pl ko_KR de ja ru; do \
echo "Making $rule for language $lang..."; \
/usr/bin/make -C po/$lang local-$rule || exit 1; \
done
Making distclean for language it_IT...
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/it_IT'
rm -f Makefile
rm -rf /build/postgis-3.4.0~rc3+dfsg/doc/html/postgis-web-mobile-en/
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/it_IT'
Making distclean for language pt_BR...
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/pt_BR'
rm -f Makefile
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/pt_BR'
Making distclean for language fr...
rm -f images # work around https://trac.osgeo.org/postgis/ticket/5422
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/fr'
rm -f Makefile
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/fr'
Making distclean for language es...
rm -f list_3d_functions.xsl.xml list_aggregates.xsl.xml
list_box_functions.xsl.xml list_curved_geometry_functions.xsl.xml
list_dump_functions.xsl.xml list_geography_functions.xsl.xml
list_new_functions.xsl.xml list_raster_functions.xsl.
xml list_sqlmm_functions.xsl.xml list_window_functions.xsl.xml
table_body_function_support_matrix.xsl.xml postgis-out.xml
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/es'
rm -f Makefile
rm -f postgis-nospecial.xml
rm -f address_standardizer_required.tag curve_support.tag
geography_transform.tag index_aware.tag M_support.tag P_support.tag
sfcgal_enhanced.tag sfcgal_required.tag sfs_compliant.tag
sqlmm_compliant.tag T_support.tag Z_support.tag
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/es'
Making distclean for language pl...
/usr/bin/make -C /build/postgis-3.4.0~rc3+dfsg/doc/html/images clean
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/pl'
rm -f Makefile
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/pl'
Making distclean for language ko_KR...
make[4]: Entering directory
'/build/postgis-3.4.0~rc3+dfsg/doc/html/images'
rm -f styles.o generator.o
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/ko_KR'
rm -f Makefile
rm -f generator
rm -rf generator-temp-*
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/ko_KR'
Making distclean for language de...
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/html/images'
rm -f postgis_gardentest_34.sql
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/de'
rm -f Makefile
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/de'
rm -f raster_gardentest_34.sql
Making distclean for language ja...
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/ja'
rm -f Makefile
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/ja'
Making distclean for language ru...
rm -f *.tmp
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/ru'
rm -f Makefile
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/ru'
/usr/bin/make clean-localized
make[4]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc'
rule=clean; \
for lang in it_IT pt_BR fr es pl ko_KR de ja ru; do \
echo "Making $rule for language $lang..."; \
/usr/bin/make -C po/$lang local-$rule || exit 1; \
done
Making clean for language it_IT...
make[5]: Entering directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/it_IT'
make[5]: *** No rule to make target 'local-clean'. Stop.
make[5]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc/po/it_IT'
make[4]: *** [Makefile:355: clean-localized] Error 1
make[4]: Leaving directory '/build/postgis-3.4.0~rc3+dfsg/doc'
}}}
I think the problem is that `distclean` has removed the `Makefile` which
provides the `local-clean` target.
The order should be the other way around, first `clean` then `distclean`.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/5477>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list