forked from cornelinux/yubikey-luks
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
42 lines (35 loc) · 1.37 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
DEB_FILES=debian/changelog debian/compat debian/control debian/copyright debian/fido2-luks.postinst debian/rules debian/source
SRC_FILES=fido2-luks-enroll fido2-luks-enroll.1 fido2-luks-open fido2-luks-open.1 fido2-utils.sh hook key-script Makefile README.md
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.2.4
PACKAGE=fido2-luks
SRC_DIR=${PACKAGE}-${VERSION}
debianize: ${SRC_FILES} ${DEB_FILES}
rm -fr DEBUILD
mkdir -p DEBUILD/${SRC_DIR}/debian
cp ${SRC_FILES} DEBUILD/${SRC_DIR}
cp -r ${DEB_FILES} DEBUILD/${SRC_DIR}/debian/
(cd DEBUILD; tar -zcf fido2-luks_${VERSION}.orig.tar.gz --exclude=${SRC_DIR}/debian ${SRC_DIR})
builddeb: ${SRC_FILES} ${DEB_FILES}
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/fido2-luks_${VERSION}-?_source.changes
ppa:
make debianize
(cd DEBUILD/${SRC_DIR}; debuild -S)
# Upload to launchpad:
dput ppa:privacyidea/privacyidea DEBUILD/fido2-luks_${VERSION}-?_source.changes
clean:
rm -fr DEBUILD