[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] use of -D in install??
From: |
Eric Blossom |
Subject: |
Re: [Discuss-gnuradio] use of -D in install?? |
Date: |
Mon, 18 Feb 2008 13:27:45 -0800 |
User-agent: |
Mutt/1.5.17 (2007-11-01) |
On Mon, Feb 18, 2008 at 03:02:47PM -0500, Greg Troxel wrote:
> gr-gpio won't install on NetBSD because the Makefile.am uses the -D
> option to install, and BSD install doesn't have -D. I tried to find a
> man page for the GNU version, but didn't manage to.
>
> The following fixes the problem, and moves this back closer to standard
> automake. OK to commit, or am I overlooking some reason why -D is
> useful?
Looks like it should work fine. Please commit.
FWIW, the -D creates leading directories.
> Index: gr-gpio/src/fpga/top/Makefile.am
> ===================================================================
> --- gr-gpio/src/fpga/top/Makefile.am (revision 7721)
> +++ gr-gpio/src/fpga/top/Makefile.am (working copy)
> @@ -23,6 +23,14 @@
>
> datadir = $(prefix)/share/usrp
>
> +datarev2dir = $(datadir)/rev2
> +
> +datarev4dir = $(datadir)/rev2
> +
> +datarev2_DATA = usrp_gpio.rbf
> +
> +datarev4_DATA = usrp_gpio.rbf
> +
> RBFS = usrp_gpio.rbf
>
> EXTRA_DIST = \
> @@ -35,23 +43,6 @@
> usrp_gpio.v \
> $(RBFS)
>
> -install-data-local:
> - @for file in $(RBFS); do \
> - echo "$(INSTALL_DATA) -D $(srcdir)/$$file
> $(DESTDIR)$(datadir)/rev2/$$file"; \
> - $(INSTALL_DATA) -D $(srcdir)/$$file
> $(DESTDIR)$(datadir)/rev2/$$file; \
> - echo "$(INSTALL_DATA) -D $(srcdir)/$$file
> $(DESTDIR)$(datadir)/rev4/$$file"; \
> - $(INSTALL_DATA) -D $(srcdir)/$$file
> $(DESTDIR)$(datadir)/rev4/$$file; \
> - done
> -
> -uninstall-local:
> - @for file in $(RBFS); do \
> - echo "$(RM) $(DESTDIR)$(datadir)/rev2/$$file"; \
> - $(RM) $(DESTDIR)$(datadir)/rev2/$$file; \
> - echo "$(RM) $(DESTDIR)$(datadir)/rev4/$$file"; \
> - $(RM) $(DESTDIR)$(datadir)/rev4/$$file; \
> - done
> -
> -
> MOSTLYCLEANFILES = \
> db/* \
> *.rpt \
>