-
Notifications
You must be signed in to change notification settings - Fork 58
/
Makefile
37 lines (31 loc) · 1.01 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
info:
@echo "builddeb [NO_SIGN=1] - build deb package for Ubuntu LTS [NO_SIGN disables signing]"
@echo "clean - clean build directory DEBUILD"
@echo "ppa-dev - upload to ppa launchpad. Development"
@echo "ppa - upload to ppa launchpad. Stable"
VERSION=0.5.1
SRC_DIR = yubikey-luks-${VERSION}
debianize:
rm -fr DEBUILD
mkdir -p DEBUILD/${SRC_DIR}
cp -r * DEBUILD/${SRC_DIR} || true
(cd DEBUILD; tar -zcf yubikey-luks_${VERSION}.orig.tar.gz --exclude=${SRC_DIR}/debian ${SRC_DIR})
builddeb:
make debianize
ifndef NO_SIGN
(cd DEBUILD/${SRC_DIR}; debuild)
else
(cd DEBUILD/${SRC_DIR}; debuild -uc -us)
endif
ppa-dev:
make debianize
(cd DEBUILD/${SRC_DIR}; debuild -S)
# Upload to launchpad:
dput ppa:privacyidea/privacyidea-dev DEBUILD/yubikey-luks_${VERSION}-?_source.changes
ppa:
make debianize
(cd DEBUILD/${SRC_DIR}; debuild -S)
# Upload to launchpad:
dput ppa:privacyidea/privacyidea DEBUILD/yubikey-luks_${VERSION}-?_source.changes
clean:
rm -fr DEBUILD