Merged changeset r9285:9377 from jblum/grc into trunk, with distcheck fixes
[debian/gnuradio] / grc / Makefile.common
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 grc_data_prefix = @datadir@/${PACKAGE}/grc
25 grc_examples_prefix = @datadir@/${PACKAGE}/examples/grc
26
27 grc_data_dir = $(grc_data_prefix)/grc
28 grc_gnuradio_data_dir = $(grc_data_prefix)/grc_gnuradio
29 grc_gnuradio_blocks_dir = $(grc_data_prefix)/grc_gnuradio/blocks
30
31 install-data-local:
32         $(mkinstalldirs) $(datadir)
33         $(foreach file, $(EXTRA_DIST), \
34                 $(INSTALL_DATA) $(srcdir)/$(file) $(datadir)/$(file); \
35         )
36
37 uninstall-local:
38         $(foreach file, $(EXTRA_DIST), \
39                 $(RM) $(datadir)/$(file); \
40         )
41         $(RM) -fr $(datadir)