summaryrefslogtreecommitdiffstats
path: root/libreport/Makefile.am
blob: 4fba6a26037cf5317051d13e22f1c2a1c61ebfe2 (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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = po src

EXTRA_DIST = libreport.pc.in

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libreport.pc

RPM_DIRS = --define "_sourcedir `pwd`" \
	   --define "_rpmdir `pwd`" \
	   --define "_specdir `pwd`" \
	   --define "_builddir `pwd`" \
	   --define "_srcrpmdir `pwd`"

rpm:
	$(MAKE) dist
	rpmbuild $(RPM_DIRS) -ba libreport.spec

srpm:
	$(MAKE) dist
	rpmbuild $(RPM_DIRS) -bs libreport.spec

# value for overriding from command line
# e.g: make scratch-build DIST=f15
DIST=rawhide
scratch-build: srpm
	koji build --scratch dist-$(DIST) `make srpm | grep Wrote | cut -d' ' -f2`