Makefile.am 1.11 KB
Newer Older
aymeric's avatar
aymeric committed
## Process this file with automake to produce Makefile.in

# let make re-run automake upon need
ACLOCAL_AMFLAGS = -I m4

if EXTERNAL_ORTP
ORTP_DIR =
else
ORTP_DIR = oRTP
endif

SUBDIRS = m4 pixmaps po ipkg $(ORTP_DIR) mediastreamer2\
smorlat's avatar
smorlat committed
		coreapi console gtk-glade share
aymeric's avatar
aymeric committed


smorlat's avatar
smorlat committed
EXTRA_DIST = config.rpath  BUGS linphone.kdevprj \
aymeric's avatar
aymeric committed
				intltool-extract.in	\
				intltool-merge.in	\
				intltool-update.in \
				README.arm \
smorlat's avatar
smorlat committed
				README.win32 \
aymeric's avatar
aymeric committed
				autogen.sh \
				linphone.spec.in linphone.spec
ACLOCAL_FLAGS=-I$(top_srcdir)/m4

DISTCLEANFILES= intltool-extract intltool-merge intltool-update po/stamp-it po/.intltool-merge-cache

# `make rpm'

all-local: linphone.spec
linphone.spec: linphone.spec.in

.phony: rpm
rpm:
	$(MAKE) dist
# Create "Specfile" at the same level as the tarball content
	-rm -f $(PACKAGE)-$(VERSION).tar
	gunzip $(PACKAGE)-$(VERSION).tar.gz
	cp $(PACKAGE).spec Specfile
	tar --append --file=$(PACKAGE)-$(VERSION).tar Specfile
	gzip $(PACKAGE)-$(VERSION).tar
# <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2068410>
	TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec $(PACKAGE)-$(VERSION).tar.gz