forked from folkertvanheusden/constatus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
27 lines (21 loc) · 959 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
# (C) 2017-2021 by Folkert van Heusden, released under Apache License 2.0
NAME="constatus"
PREFIX=/usr
VERSION="4.6"
constatus:
mkdir -p build && cd build && cmake .. && make
install: constatus
install -Dm755 constatus ${DESTDIR}${PREFIX}/bin/constatus
install -Dm755 motion-to-constatus.py ${DESTDIR}${PREFIX}/share/doc/constatus/motion-to-constatus.py
mkdir -p ${DESTDIR}${PREFIX}/share/doc/constatus
install -Dm644 constatus.cfg ${DESTDIR}${PREFIX}/share/doc/constatus/example.cfg
install -Dm644 man/constatus.1 ${DESTDIR}${PREFIX}/share/man/man1/constatus.1
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/constatus
clean:
rm -rf build
package: clean
mkdir constatus-$(VERSION)
cp -a man/ src examples README.md constatus.cfg debian favicon.ico stylesheet.css LICENSE CMakeLists.txt config.h.in motion-to-constatus.py README.rest constatus-$(VERSION)
tar czf ../constatus_$(VERSION).orig.tar.gz constatus-$(VERSION)
rm -rf constatus-$(VERSION)