File: Makefile

package info (click to toggle)
impass 0.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 264 kB
  • sloc: python: 1,267; sh: 981; makefile: 36
file content (34 lines) | stat: -rwxr-xr-x 831 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
#!/usr/bin/make -f
# -*- makefile -*-

VERSION:=$(shell git describe --tags | sed -e s/_/~/ -e s/-/+/ -e s/-/~/ -e 's|.*/||')

.PHONY: all
all: impass.1

.PHONY: test
test:
	./test/impass-test $(TEST_OPTS)
	rm -f test/gnupg/S.gpg-agent

impass.1: impass
	PYTHONPATH=. python3 -m impass help \
	| txt2man -t impass -r 'impass $(VERSION)' -s 1 \
	> impass.1

version:
	echo "__version__ = '$(VERSION)'" >impass/version.py

.PHONY: clean
clean:
	rm -f impass.1

.PHONY: debian-snapshot
debian-snapshot:
	rm -rf build/deb
	mkdir -p build/deb/debian
	git archive HEAD | tar -x -C build/deb/
	git archive --format=tar debian/master:debian | tar -x -C build/deb/debian/
	cd build/deb; dch -b -v $(VERSION) -D UNRELEASED 'test build, not for upload'
	cd build/deb; echo '3.0 (native)' > debian/source/format
	cd build/deb; debuild -us -uc