[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dangerous command in Makefile.in uninstall rule
From: |
Eli Zaretskii |
Subject: |
Re: dangerous command in Makefile.in uninstall rule |
Date: |
Fri, 03 Mar 2006 14:35:22 +0200 |
> From: Richard Stallman <rms@gnu.org>
> Date: Mon, 27 Feb 2006 18:47:01 -0500
> Cc: bug-gnu-emacs@gnu.org
>
> $ rm -f cl* ada-mode*
> autotype* calc* ccmode* ebrowse* efaq* eintr elisp*
> eshell* eudc* idlwave* message* pcl-cvs* reftex*
> speedbar* tramp* widget* woman* dired-x* ediff* emacs*
> emacs-xtra* flymake* forms* gnus* info* mh-e*
> newsticker* org* sc* ses* vip* smtpmail* url* rcirc*
> erc*
>
> We could make these more specific. For instance, it could be
>
> cl cl-*
>
> or even
>
> cl cl-[0-9] cl-[0-9][0-9]
>
> for each one of the manuals.
>
> But that is rather clumsy. Is there any cleaner way to do it?
The cleanest way I know of is to have a single list of main Info files
(i.e., without the -[0-9] etc. suffixes, and then do something like
this:
for f in ${INFO_FILES} do
rm -f $$f $$f-[1-9] $$f-[1-9][0-9]
done
We could then have the install target use INFO_FILES as well.