On Tue, Sep 30, 2003 at 11:02:39AM -0400, Igor Pechtchanski wrote: >On Tue, 30 Sep 2003, Corinna Vinschen wrote: >> Wouldn't it be sufficient to add $(srcdir)/cygprogctl to PROGS and to >> drop the copy rule? The script only needs installing and that should >> work then. > >I just remembered why I did it this way: aren't all of the $(PROGS) are >deleted on "make clean"? If I added $(srcdir)/cygprogctl to PROGS, I'd >have to change the "clean" rule. I thought a copy would be easier and >less intrusive.
Good point, but I think I'd prefer something like: install: all cygprogctl $(SHELL) $(updir1)/mkinstalldirs $(bindir) $(etcdir) for i in $(PROGS) ${word 2,$^} ; do \ n=`echo $$i | sed '$(program_transform_name)'`; \ $(INSTALL_PROGRAM) $$i $(bindir)/$$n; \ done That would just let the standard install deal with installation. cgf