forked from haxii/iOS-WiFi-Auto-Reconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
23 lines (18 loc) · 756 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
deb.tmpdir = .
all: builddir release clean
echo "make success"
builddir:clean
mkdir -p $(deb.tmpdir)/.tmp/DEBIAN
mkdir -p $(deb.tmpdir)/.tmp/Library/LaunchDaemons
mkdir -p $(deb.tmpdir)/.tmp/usr/bin
cp -rf $(deb.tmpdir)/DEBIAN/* $(deb.tmpdir)/.tmp/DEBIAN/
cp -rf $(deb.tmpdir)/Library/LaunchDaemons/* $(deb.tmpdir)/.tmp/Library/LaunchDaemons/
cp -rf $(deb.tmpdir)/usr/bin/* $(deb.tmpdir)/.tmp/usr/bin/
release:
mkdir -p $(deb.tmpdir)/package
rm -rf $(deb.tmpdir)/package/*
chown -R root:wheel $(deb.tmpdir)/.tmp/
dpkg-deb -Zgzip -b $(deb.tmpdir)/.tmp/ $(deb.tmpdir)/package/ios.wifiautoconnect+0.0.1-iphone-arm.deb
rm -rf $(deb.tmpdir)/.tmp/
clean:
rm -rf $(deb.tmpdir)/.tmp/ $(deb.tmpdir)/package/ios.wifiautoconnect+0.0.1-iphone-arm.deb