File: Makefile.am

package info (click to toggle)
certmonger 0.79.14%2Bgit20211010-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 6,148 kB
  • sloc: ansic: 57,933; sh: 6,693; makefile: 880; python: 563; xml: 296
file content (80 lines) | stat: -rw-r--r-- 2,277 bytes parent folder | download | duplicates (2)
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
ACLOCAL_AMFLAGS = -I m4
EXTRA_FILES = doc/*.txt
SUBDIRS = po src dbus systemd sysvinit tests
EXTRA_DIST = config.rpath \
	     certmonger.spec LICENSE README.md STATUS doc src/certmonger.conf.in

DISTCHECK_CONFIGURE_FLAGS = --disable-systemd --disable-sysvinit --with-tmpdir=/var/run/certmonger --without-system-bus-services-dir --without-session-bus-services-dir

VERSION=$(PACKAGE_VERSION)
RELEASE=
GITTAG=certmonger-$(VERSION)

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
	git tag $(GITTAG)

force-tag: all-gmo
	git tag -f $(GITTAG)

GITREMOTE=origin
ORIGIN=$(shell git config remote.$(GITREMOTE).url 2> /dev/null || /bin/pwd)
ARCHIVEOUTDIR=$(shell cd $(top_srcdir) && pwd)

local-archive:
	$(MAKE) archive ORIGIN=$(ARCHIVEOUTDIR)

local-srpm:
	repo=`pwd`; \
	tmpdir=`mktemp -d /tmp/make_archive_XXXXXX`; \
	if test -d "$$tmpdir" ; then \
		git clone . $$tmpdir;\
		cd $$tmpdir;\
		./make-srpm.sh;\
		cp -v $(distdir)-*.src.rpm $(ARCHIVEOUTDIR)/;\
		chmod -R u+rw $$tmpdir;\
		rm -fr $$tmpdir;\
	fi

srpm:
	repo=`pwd`; \
	tmpdir=`mktemp -d /tmp/make_archive_XXXXXX`; \
	if test -d "$$tmpdir" ; then \
		git clone $(ORIGIN) $$tmpdir/certmonger;\
		cd $$tmpdir/certmonger;\
		git checkout $(GITTAG);\
		./make-srpm.sh;\
		cp -v $(distdir)-*.src.rpm $(ARCHIVEOUTDIR)/;\
		chmod -R u+rw $$tmpdir;\
		rm -fr $$tmpdir;\
	fi

archive: srpm
	repo=`pwd`; \
	tmpdir=`mktemp -d /tmp/make_archive_XXXXXX`; \
	if test -d "$$tmpdir" ; then \
		git clone $(ORIGIN) $$tmpdir/certmonger;\
		cd $$tmpdir/certmonger;\
		git checkout $(GITTAG);\
		./autogen.sh --disable-systemd --disable-sysvinit ;\
		make distcheck;\
		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 "_buildrootdir $$tmpdir/rpm-build-top" \
			--define "_srpmdir $$tmpdir/rpm-build-top" \
			--define "_srcrpmdir $$tmpdir/rpm-build-top" \
			--define "_rpmdir $$tmpdir/rpm-build-top" \
			-tb $(distdir).tar.gz;\
		cp -v $(distdir).tar.gz $(ARCHIVEOUTDIR)/;\
		chmod -R u+rw $$tmpdir;\
		rm -fr $$tmpdir;\
	fi