2016-11-06 13:58:51 +01:00
|
|
|
include globals.mk
|
2009-07-02 17:44:33 -04:00
|
|
|
|
2009-04-21 17:56:33 -04:00
|
|
|
# Makefile.am
|
|
|
|
|
2009-07-02 17:44:33 -04:00
|
|
|
SOURCES=
|
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2014-08-01 17:11:04 -04:00
|
|
|
|
2017-08-17 16:43:18 -04:00
|
|
|
SUBDIRS = src ringtones man doc bin test
|
2011-08-08 16:40:53 -04:00
|
|
|
|
2012-04-30 18:23:52 -04:00
|
|
|
EXTRA_DIST = m4/libtool.m4 \
|
2011-08-22 16:06:19 -04:00
|
|
|
m4/lt~obsolete.m4 \
|
|
|
|
m4/ltoptions.m4 \
|
|
|
|
m4/ltsugar.m4 \
|
2014-05-02 19:56:27 -04:00
|
|
|
m4/ltversion.m4 \
|
2014-09-30 00:02:57 -04:00
|
|
|
contrib/bootstrap \
|
|
|
|
contrib/src
|
2013-03-06 16:34:56 -05:00
|
|
|
|
2021-05-13 10:05:48 -04:00
|
|
|
coverage-html:
|
daemon: Rename dring occurrences in code and file names to jamid.
Automated using the following commands:
$ mv src/{dring,jami}
$ git grep -l src/dring | xargs sed -i 's,src/dring,src/jami,g'
$ git grep -l '#include "dring/' | \
xargs sed -i 's,#include "dring/,#include "jami/,g'
$ git grep -l 'dring.h' | xargs sed -i 's,dring.h,jami.h,g'
And finally,
$ git grep -l 'dring' | xargs sed -i 's,dring,jami,g'
$ files=$(find -name '*dring*' | sort)
$ for f in $files; do mkdir -p "$(dirname "$f")"; \
mv "$f" "$(echo $f | sed 's/dring/jami/g')"; done
To resolve a bad renaming favorably:
$ git grep -l -i AlsaCarjami | \
xargs sed -i -E 's/([Aa])lsaCarjami/\1lsaCardRingtone/g'
The above renaming command is not perfect, so some hand-tuning was
required to complete it.
* src/manager.cpp (Manager::ManagerPimpl::retrieveConfigPath):
Preserve the dring.yml configuration file name, until we add something
to migrate (rename) it to jami.yml.
* man/dring.pod: Delete.
* bin/dbus/jamid.pod: Move to ...
* man/jamid.pod: here.
* bin/dbus/meson.build (jamid_targets): Normalize man section to the
pre-existing 1 and adjust accordingly.
* src/jami/def.h (dring_EXPORTS): Rename to ...
(jami_EXPORTS): ... this.
change-Id: I9828be6da9c711ab2f22c4d1b9539fea89d7b6fb
2021-06-15 11:03:11 -04:00
|
|
|
$(AM_V_at)lcov --no-external --capture --initial --directory $(top_builddir) --output-file jami-coverage-base.info
|
|
|
|
$(AM_V_at)lcov --no-external --capture --directory $(top_builddir) --output-file jami-coverage-tests.info
|
|
|
|
$(AM_V_at)lcov --add-tracefile jami-coverage-base.info --add-tracefile jami-coverage-tests.info --output-file jami-coverage.info
|
2021-11-09 12:37:49 -05:00
|
|
|
$(AM_V_at)lcov --remove jami-coverage.info "$(abs_top_builddir)/contrib/*" "$(abs_top_builddir)/bin/dbus/*" --output-file jami-coverage-filtered.info
|
2021-05-13 10:05:48 -04:00
|
|
|
$(MKDIR_P) html-coverage-output
|
daemon: Rename dring occurrences in code and file names to jamid.
Automated using the following commands:
$ mv src/{dring,jami}
$ git grep -l src/dring | xargs sed -i 's,src/dring,src/jami,g'
$ git grep -l '#include "dring/' | \
xargs sed -i 's,#include "dring/,#include "jami/,g'
$ git grep -l 'dring.h' | xargs sed -i 's,dring.h,jami.h,g'
And finally,
$ git grep -l 'dring' | xargs sed -i 's,dring,jami,g'
$ files=$(find -name '*dring*' | sort)
$ for f in $files; do mkdir -p "$(dirname "$f")"; \
mv "$f" "$(echo $f | sed 's/dring/jami/g')"; done
To resolve a bad renaming favorably:
$ git grep -l -i AlsaCarjami | \
xargs sed -i -E 's/([Aa])lsaCarjami/\1lsaCardRingtone/g'
The above renaming command is not perfect, so some hand-tuning was
required to complete it.
* src/manager.cpp (Manager::ManagerPimpl::retrieveConfigPath):
Preserve the dring.yml configuration file name, until we add something
to migrate (rename) it to jami.yml.
* man/dring.pod: Delete.
* bin/dbus/jamid.pod: Move to ...
* man/jamid.pod: here.
* bin/dbus/meson.build (jamid_targets): Normalize man section to the
pre-existing 1 and adjust accordingly.
* src/jami/def.h (dring_EXPORTS): Rename to ...
(jami_EXPORTS): ... this.
change-Id: I9828be6da9c711ab2f22c4d1b9539fea89d7b6fb
2021-06-15 11:03:11 -04:00
|
|
|
genhtml -o html-coverage-output jami-coverage-filtered.info
|
2021-05-13 10:05:48 -04:00
|
|
|
|
|
|
|
coverage-%:
|
|
|
|
gcovr --filter src --filter test --$*-pretty --$* --output $*-coverage-output.$*
|
2013-03-06 16:34:56 -05:00
|
|
|
|
|
|
|
coverage-clean:
|
|
|
|
$(AM_V_at)lcov --directory $(top_builddir) --zerocounters
|
2021-05-13 10:05:48 -04:00
|
|
|
$(AM_V_at)rm -f *.info
|
|
|
|
$(AM_V_at)rm -rf *-coverage-output
|
|
|
|
|
|
|
|
coverage-cleaner: coverage-clean
|
|
|
|
$(AM_V_at)find -name '*.gcda' -delete -or -name "*.gcno" -delete
|
|
|
|
|
|
|
|
all-coverage: coverage-clean coverage-html coverage-xml coverage-json
|
2013-03-06 16:34:56 -05:00
|
|
|
|
2021-05-13 10:05:48 -04:00
|
|
|
.PHONY: all-coverage coverage-html coverage-json coverage-xml coverage-clean coverage-cleaner
|