summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 8f864968b0b7bf814bb6c7bf234676b348adeead (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
AUTOMAKE_OPTIONS = gnu
SUBDIRS = pixmaps tools src etc man
DISTDIRS = pixmaps tools src etc man

EXTRA_DIST = \
	hugin/hugin.h \
	hugin/hugin.hpp \
	hugin/hugin.c \
	hugin/hugin_util.h \
	hugin/hugin_filter.h \
	hugin/hugin_syslog.h \
	hugin/hugin_syslog.c

rpm:
	@echo "## Creating miav.rpm"
	@echo "# Delete old rpmbuild (if one exists):"
	rm -Rf rpmbuild

	@echo "# Create rpmbuild directories:"
	mkdir -p rpmbuild/{RPMS,BUILD,SOURCES}
	make dist
	cp miav-$(VERSION).tar.gz rpmbuild/SOURCES

	rpmbuild -ba miav-client.spec --define="%_topdir ${PWD}/rpmbuild"
	rpmbuild -ba miav-server.spec --define="%_topdir ${PWD}/rpmbuild"

	mv rpmbuild/RPMS/*/miav-*.rpm .