forked from ikipro/aos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (57 loc) · 1.78 KB
/
Makefile
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
## This file is part of Whonix.
## Copyright (C) 2012 - 2014 Patrick Schleizer <adrelanos@riseup.net>
## See the file COPYING for copying conditions.
SHELL := /bin/bash
all:
@echo "Purely optional makefile for Whonix developer's convenience:"
@echo
@echo "make lintian - for lintian report in $(CURDIR)/lintian.log"
@echo "make package - performs a full build"
@echo "make contents - shows dpkg --contents of all packages"
@echo
@echo "make cl-append - to append a new line to changelog"
@echo "make cl-release - to update timestamp and let edit the version"
@echo
@echo "make clean - to remove the built packages and clean up the debian folder"
@echo
@echo "Extra git commands for $(USER)'s convenience:"
@echo
@echo "make update - to convince glorious git to give me the current code"
@echo "make commit/ci - to convince glorious git to put my current code to GitHub"
@echo "make status - to convince glorious git to give me a meaningful status"
@echo "make merge - to convince glorious git to merge something"
package:
$(CURDIR)/help-steps/make-tarball
dpkg-buildpackage -F -Zxz -z9 -tc
unsignedpackage:
$(CURDIR)/help-steps/make-tarball
dpkg-buildpackage -F -Zxz -z9 -tc -us -uc
lintian: debian/control
-lintian -I -i `find $(CURDIR)/.. -name '*.dsc' -o -name '*.deb'` > ../lintian.log
contents:
@for i in `find $(CURDIR)/.. -name '*.deb'`; do \
echo "dpkg --contents $$i"; \
dpkg --contents $$i ; \
done
clean:
$(CURDIR)/help-steps/cleanup-files
update:
git fetch origin
git merge origin/master
ci: commit
commit:
git commit -a
git push
status:
git status
merge:
@if [ -n "$(RB)" ]; then \
echo "git diff $(RB)"; \
git diff $(RB); \
else \
echo "How about to give RB=\"remote/branch\"?"; \
fi
cl-append:
dch -pma
cl-release:
dch -pmr