aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 84f1bf68d9ad4b8c76e0d8a9959f384abecc21b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#
# Copyright 2010 Ettus Research LLC
#

include $(top_srcdir)/Makefile.common

SUBDIRS = include lib test

########################################################################
## Handle the pkgconfig file generation
########################################################################
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = usrp_uhd.pc

EXTRA_DIST = $(srcdir)/usrp_uhd.pc.in
BUILT_SOURCES = usrp_uhd.pc

usrp_uhd.pc: $(srcdir)/usrp_uhd.pc.in Makefile
	$(SED) \
		-e 's|@prefix[@]|$(prefix)|g' \
		-e 's|@exec_prefix[@]|$(exec_prefix)|g' \
		-e 's|@libdir[@]|$(libdir)|g' \
		-e 's|@includedir[@]|$(includedir)|g' \
		-e 's|@VERSION[@]|$(VERSION)|g' \
	$< > $@