Merged r7611:7614 from jcorgan/gpio into trunk. Adds custom
[debian/gnuradio] / gr-gpio / src / fpga / top / Makefile.am
1 #
2 # Copyright 2008 Free Software Foundation, Inc.
3
4 # This file is part of GNU Radio
5
6 # GNU Radio is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
9 # any later version.
10
11 # GNU Radio is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License
17 # along with GNU Radio; see the file COPYING.  If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street,
19 # Boston, MA 02110-1301, USA.
20
21
22 include $(top_srcdir)/Makefile.common
23
24 datadir = $(prefix)/share/usrp
25
26 RBFS = usrp_gpio.rbf
27
28 EXTRA_DIST = \
29         config.vh    \
30         usrp_gpio.csf \
31         usrp_gpio.esf \
32         usrp_gpio.psf \
33         usrp_gpio.qpf \
34         usrp_gpio.qsf \
35         usrp_gpio.v   \
36         $(RBFS)
37
38 install-data-local:
39         @for file in $(RBFS); do \
40                 echo "$(INSTALL_DATA) -D $(srcdir)/$$file $(DESTDIR)$(datadir)/rev2/$$file"; \
41                 $(INSTALL_DATA) -D $(srcdir)/$$file $(DESTDIR)$(datadir)/rev2/$$file; \
42                 echo "$(INSTALL_DATA) -D $(srcdir)/$$file $(DESTDIR)$(datadir)/rev4/$$file"; \
43                 $(INSTALL_DATA) -D $(srcdir)/$$file $(DESTDIR)$(datadir)/rev4/$$file; \
44         done
45
46 uninstall-local:
47         @for file in $(RBFS); do \
48                 echo "$(RM) $(DESTDIR)$(datadir)/rev2/$$file"; \
49                 $(RM) $(DESTDIR)$(datadir)/rev2/$$file; \
50                 echo "$(RM) $(DESTDIR)$(datadir)/rev4/$$file"; \
51                 $(RM) $(DESTDIR)$(datadir)/rev4/$$file; \
52         done
53
54
55 MOSTLYCLEANFILES =      \
56         db/*            \
57         *.rpt           \
58         *.summary       \
59         *.qws           \
60         *.smsg          \
61         *.done          \
62         *.pin           \
63         *.sof           \
64         *~