-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 795 Bytes
/
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
PKG=`basename $(PWD)`
VERSION=$(shell head -n 1 debian/changelog | sed "s|$(PKG) (||g" | sed 's|).*||')
echo:
@echo "$(VERSION)"
apt-transport-i2phttp:
go build \
-a \
-tags netgo \
-ldflags '-w -extldflags "-static"'
install:
install -m755 apt-transport-i2phttp /usr/lib/apt/methods/i2p
clean:
go clean
orig:
tar --exclude=.git --exclude=debian -czvf ../apt-transport-i2phttp_$(VERSION).orig.tar.gz .
release: ubuntus debians
debians:
./release.sh stable
./release.sh testing
./release.sh unstable
ubuntus:
./release.sh bionic
./release.sh eoan
./release.sh focal
github-release: release
./release.sh upload
copier:
echo '#! /usr/bin/env sh' > deb/copy.sh
echo 'for f in $$(ls); do scp $$f/*.deb [email protected]:~/DEBIAN_PKGS/$$f/main/; done' >> deb/copy.sh