blob: 956ed4bcf15000c9f3545f7ebb7725c470b0347c (
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
29
30
31
32
|
EXTRA_DIST = STATUS doc/*.txt doc/migrate-nis.sh
SUBDIRS = src
VERSION=@PACKAGE_VERSION@
RELEASE=0
GITTAG=slapi-nis-$(VERSION)-$(RELEASE)
distdir=slapi-nis-$(VERSION)-$(RELEASE)
tag:
git tag $(GITTAG)
force-tag:
git tag -f $(GITTAG)
ORIGIN=$(shell git config remote.origin.url 2> /dev/null || /bin/pwd)
ARCHIVEOUTDIR=$(shell cd $(top_srcdir) && pwd)
local-archive:
$(MAKE) archive ORIGIN=$(ARCHIVEOUTDIR)
archive:
repo=`pwd`; \
tmpdir=`mktemp -d /tmp/make_archive_XXXXXX`; \
if test -d "$$tmpdir" ; then \
git clone $(ORIGIN) $$tmpdir/slapi-nis;\
cd $$tmpdir/slapi-nis;\
git checkout $(GITTAG);\
./autogen;\
make dist;\
cp -v $(distdir).tar.gz $(ARCHIVEOUTDIR)/;\
rm -fr $$tmpdir;\
fi
|