NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/53905: install(1) is unnecessarily difficult to use



The following reply was made to PR bin/53905; it has been noted by GNATS.

From: David Holland <dholland-gnats%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/53905: install(1) is unnecessarily difficult to use
Date: Thu, 24 Jan 2019 17:47:59 +0000

 On Thu, Jan 24, 2019 at 04:05:00PM +0000, coypu%sdf.org@localhost wrote:
  > ALL_DRUNTIME_INSTALL_DSOURCES = core/atomic.d core/attribute.d  #... a list of 600+ files in 64 directories
  > 
  > 
  > install-data-local:
  >         for file in $(ALL_DRUNTIME_INSTALL_DSOURCES); do \
  >             $(INSTALL_HEADER) -D $(srcdir)/$$file \
  >               $(DESTDIR)$(gdc_include_dir)/$$file ; \
  >         done
 
 for pkgsrc (unless the package's makefile is already gmake-only) you
 can handle the dirs with
 
 	$(INSTALL_DATA_DIR) $(ALL_DRUNTIME_INSTALL_DSOURCES:H:O:u)
 
 provided that our INSTALL_DATA_DIR is visible (it's install -d).
 
 For gmake, ymwv.
 
 IME it's not a good idea in general to autocreate destination
 directories because it has a tendency to accidentally put stuff in
 strange places without anyone noticing.
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index