1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

autotools: added EXTRA_DIST

Now sources can be distributed with `make dist-bzip2` command, so no
need to make tarball manually. Current patch takes into account the
status (release or development) and puts .git/HEAD, .git/index to
tarball if necessary.

Unfortunately, current scripts don't add any information about
development status to the version string. Therefore,
profanity-0.5.0.tar.bz2 is got regardless of development or release
status.
This commit is contained in:
Dmitry Podgorny 2014-04-17 12:35:09 +03:00
parent aa6e2284fc
commit 0c1092fd30

View File

@ -90,15 +90,9 @@ otr3_sources = \
otr4_sources = \ otr4_sources = \
src/otr/otrlib.h src/otr/otrlibv4.c src/otr/otr.h src/otr/otr.c src/otr/otrlib.h src/otr/otrlibv4.c src/otr/otr.h src/otr/otr.c
themes_sources = \ themes_sources = themes/*
themes/aqua \
themes/boothj5 \ man_sources = docs/profanity.1
themes/hacker \
themes/headache \
themes/original \
themes/redsplash \
themes/whiteness \
themes/yellowsplash
if BUILD_OTR if BUILD_OTR
if BUILD_OTR3 if BUILD_OTR3
@ -126,9 +120,13 @@ check_PROGRAMS = tests/testsuite
tests_testsuite_SOURCES = $(tests_sources) tests_testsuite_SOURCES = $(tests_sources)
tests_testsuite_LDADD = -lcmocka tests_testsuite_LDADD = -lcmocka
man_MANS = docs/profanity.1 man_MANS = $(man_sources)
EXTRA_DIST = $(man_sources) $(themes_sources)
if INCLUDE_GIT_VERSION if INCLUDE_GIT_VERSION
EXTRA_DIST += .git/HEAD .git/index
$(git_include).in: .git/HEAD .git/index $(git_include).in: .git/HEAD .git/index
rm -f $@ rm -f $@
echo "#ifndef PROF_GIT_BRANCH" >> $@ echo "#ifndef PROF_GIT_BRANCH" >> $@