| Line | |
|---|
| 1 | ## Process this file with automake to produce Makefile.in |
|---|
| 2 | |
|---|
| 3 | # let make re-run automake upon need |
|---|
| 4 | ACLOCAL_AMFLAGS = -I m4 |
|---|
| 5 | |
|---|
| 6 | if EXTERNAL_ORTP |
|---|
| 7 | ORTP_DIR = |
|---|
| 8 | else |
|---|
| 9 | ORTP_DIR = oRTP |
|---|
| 10 | endif |
|---|
| 11 | |
|---|
| 12 | SUBDIRS = m4 pixmaps po ipkg $(ORTP_DIR) mediastreamer2\ |
|---|
| 13 | coreapi console gtk-glade share |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | EXTRA_DIST = config.rpath BUGS linphone.kdevprj \ |
|---|
| 17 | intltool-extract.in \ |
|---|
| 18 | intltool-merge.in \ |
|---|
| 19 | intltool-update.in \ |
|---|
| 20 | README.arm \ |
|---|
| 21 | README.win32 \ |
|---|
| 22 | autogen.sh \ |
|---|
| 23 | linphone.spec.in linphone.spec |
|---|
| 24 | ACLOCAL_FLAGS=-I$(top_srcdir)/m4 |
|---|
| 25 | |
|---|
| 26 | DISTCLEANFILES= intltool-extract intltool-merge intltool-update po/stamp-it po/.intltool-merge-cache |
|---|
| 27 | |
|---|
| 28 | INSTALLDIR=$(shell cd $(top_builddir) && pwd)/linphone-install |
|---|
| 29 | ZIPFILE=$(shell cd $(top_builddir) && pwd)/$(PACKAGE)-win32-$(VERSION).zip |
|---|
| 30 | ZIP_EXCLUDED=include lib |
|---|
| 31 | |
|---|
| 32 | # `make rpm' |
|---|
| 33 | |
|---|
| 34 | all-local: linphone.spec |
|---|
| 35 | linphone.spec: linphone.spec.in |
|---|
| 36 | |
|---|
| 37 | .phony: rpm |
|---|
| 38 | rpm: |
|---|
| 39 | $(MAKE) dist |
|---|
| 40 | # Create "Specfile" at the same level as the tarball content |
|---|
| 41 | -rm -f $(PACKAGE)-$(VERSION).tar |
|---|
| 42 | gunzip $(PACKAGE)-$(VERSION).tar.gz |
|---|
| 43 | cp $(PACKAGE).spec Specfile |
|---|
| 44 | tar --append --file=$(PACKAGE)-$(VERSION).tar Specfile |
|---|
| 45 | gzip $(PACKAGE)-$(VERSION).tar |
|---|
| 46 | # <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=2068410> |
|---|
| 47 | TAR_OPTIONS=--wildcards rpmbuild -ta --clean --rmsource --rmspec $(PACKAGE)-$(VERSION).tar.gz |
|---|
| 48 | |
|---|
| 49 | #a zip containing win32 binaries, suitable to generate an installer |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | |
|---|
| 53 | zip: |
|---|
| 54 | rm -f $(ZIPFILE) |
|---|
| 55 | rm -rf $(INSTALLDIR) |
|---|
| 56 | mkdir -p $(INSTALLDIR) |
|---|
| 57 | make install DESTDIR=$(INSTALLDIR) |
|---|
| 58 | cd $(INSTALLDIR)/$(prefix) && rm -rf $(ZIP_EXCLUDED) && \ |
|---|
| 59 | zip -r $(ZIPFILE) * |
|---|
| 60 | |
|---|
| 61 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.