summaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: b201e1e9f32562e087e8b56f27c831e37d5cb4ef (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
28
29
30
31
32
33
34
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = lib src inc po icons

DISTCHECK_CONFIGURE_FLAGS = \
        --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)

EXTRA_DIST = doc/coding-style abrt.spec abrt.pc.in doc/abrt-plugin/ doc/howto-write-reporter
BUILDID =  `date +%G%m%d%H%M%S`

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

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

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

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

test-rpm: dist
	rpmbuild --define "_buildid `date +%G%m%d%H%M%S`" \
		$(RPM_DIRS) -ba abrt.spec

test-srpm: dist
	rpmbuild --define "_buildid $(BUILDID)" \
		$(RPM_DIRS) -bs abrt.spec

scratch-build: test-srpm
	koji build --scratch dist-rawhide $(PACKAGE)-$(VERSION)-0.$(BUILDID).fc14.src.rpm