aboutsummaryrefslogtreecommitdiff
path: root/pkg-config/Makefile.am
blob: c872a9d441507f490d54e0c8f5e1fd15b29e785d (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
27
MAINTAINERCLEANFILES = Makefile.in
pkgconfigdir = $(libdir)/pkgconfig/
pkgconfig_DATA = paludis.pc
EXTRA_DIST = paludis.pc.in
CLEANFILES = paludis.pc

built-sources : $(BUILT_SOURCES)
	for s in $(SUBDIRS) ; do $(MAKE) -C $$s built-sources || exit 1 ; done

distcheck-deps-local : $(DISTCHECK_DEPS)

distcheck-deps : distcheck-deps-subdirs

distcheck-deps-subdirs :
	for s in $(SUBDIRS) . ; do if test x$$s = x. ; then $(MAKE) distcheck-deps-local || exit 1 ; \
	    else $(MAKE) -C $$s distcheck-deps || exit 1 ; fi ; done

paludis.pc : paludis.pc.in Makefile
	sed \
	    -e "s,#PALUDIS_PC_PREFIX#,$(prefix)," \
	    -e "s,#PALUDIS_PC_LIBDIR#,$(libdir)," \
	    -e "s,#PALUDIS_PC_INCLUDEDIR#,$(includedir)/paludis-$(PALUDIS_PC_SLOT)," \
	    -e "s,#PALUDIS_PC_VERSION#,$(PALUDIS_PC_VERSION)," \
	    -e "s,#PALUDIS_PC_LIBS#,$(PALUDIS_PC_LIBS)," \
	    -e "s,#PALUDIS_PC_CFLAGS#,$(PALUDIS_PC_CFLAGS)," \
	    < $(srcdir)/paludis.pc.in > paludis.pc