-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
55 lines (45 loc) · 1.55 KB
/
Makefile.am
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
EXTRA_DIST = pam_krb5.spec TODO docs README*
CONFIGURE_DEPENDENCIES = $(top_srcdir)/pam_krb5.spec
SUBDIRS = src tests po
SVERSION=$(shell awk '/^Version:/ {print $$NF}' $(top_srcdir)/pam_krb5.spec | sed 's,%.*,,' | head -n 1)
SRELEASE=$(shell awk '/^Release:/ {print $$NF}' $(top_srcdir)/pam_krb5.spec | sed 's,%.*,,' | head -n 1)
GITTAG=$(PACKAGE)-$(VERSION)
distdir=$(GITTAG)
DISTCLEANFILES = tests/kdc/krb5cc_* tests/kdc/tkt*
all-gmo:
zanata-cli pull -B
cd po ; for po in *.po ; do make `basename $$po .po`.gmo ; done
$(MAKE) -C po update-po
zanata-cli push -B
tag: all-gmo
test $(GITTAG) = $(PACKAGE)-$(SVERSION)
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/pam_krb5;\
cd $$tmpdir/pam_krb5;\
git checkout $(GITTAG);\
./autogen;\
make dist;\
$(MKDIR_P) $$tmpdir/rpm-build-top;\
rpmbuild \
--define "_topdir $$tmpdir/rpm-build-top" \
--define "_sourcedir $$tmpdir/rpm-build-top" \
--define "_specdir $$tmpdir/rpm-build-top" \
--define "_builddir $$tmpdir/rpm-build-top" \
--define "_srpmdir $$tmpdir/rpm-build-top" \
--define "_rpmdir $$tmpdir/rpm-build-top" \
--define "_rpmdir $$tmpdir/rpm-build-top" \
-tb $(distdir).tar.gz;\
cp -v $(distdir).tar.gz $(ARCHIVEOUTDIR)/;\
rm -fr $$tmpdir;\
fi
ACLOCAL_AMFLAGS = -I m4