discuss-gnuradio
[Top][All Lists]
Advanced

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

[Discuss-gnuradio] use of -D in install??


From: Greg Troxel
Subject: [Discuss-gnuradio] use of -D in install??
Date: Mon, 18 Feb 2008 15:02:47 -0500
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (berkeley-unix)

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?


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           \





reply via email to

[Prev in Thread] Current Thread [Next in Thread]