summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: 950b5a89ab33531cd1725bc2484e858856b5f00d (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
26
#
# 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
MOSTLYCLEANFILES = $(BUILT_SOURCES)

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' \
	$< > $@