in reply to Re: let Makefile.PL to do the Readme file for me -- new target?
in thread let Makefile.PL to do the Readme file for me -- new target?

Don't quote me on this, but years and years ago, I almost seem to recall adding stuff to the built-in targets:

install:: shell command \ do things dist:: ....

Update: In fact, something like this:

install:: cgi conf graphics docs libs templates retest clean:: clean_sourcedirs clean_test cgi: install -m 0500 -o www -g www src/cgi-bin/accounting.cgi ${CGIDIR} clean_sourcedirs: rm -f doc/*.html rm -f doc/*.conf clean_test: rm -f t/test.db rm -f t/test.conf-dist ... and other things called by the main directives, such as conf, grap +hics for install...

Replies are listed 'Best First'.
Re^3: let Makefile.PL to do the Readme file for me -- new target?
by pryrt (Abbot) on Jan 19, 2021 at 17:56 UTC
    quoting stevieb on this, in direct violation of his wishes ;-)
    Don't quote me on this, but years and years ago, I almost seem to recall adding stuff to the built-in targets:

    yes. My linked Makefile.PL shows a realclean:: section, which adds new tasks to an existing target of that same name. It adds it after any existing actions for the target.