forked from djhworld/blinkt-tube-status
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
21 lines (14 loc) · 596 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
TARGET_DIR=./target
PACKAGE_NAME=blinkt-tube-status_1.0.0-1
all: clean prepare
clean:
sudo rm -rf ${TARGET_DIR}
prepare:
mkdir -p ${TARGET_DIR}/${PACKAGE_NAME}
# This will create a DEB package
package: all
cp -a packaging/* ${TARGET_DIR}/${PACKAGE_NAME}/
cp blinkt-tube-status.py ${TARGET_DIR}/${PACKAGE_NAME}/usr/local/bin/blinkt-tube-status
chmod +x ${TARGET_DIR}/${PACKAGE_NAME}/usr/local/bin/blinkt-tube-status
cd ${TARGET_DIR} && find . | grep placeholder | xargs -I {} rm -v {}
cd ${TARGET_DIR} && sudo chown -R root:root ./${PACKAGE_NAME} && dpkg-deb --build ${PACKAGE_NAME}