makefile
This commit is contained in:
parent
3597383a5a
commit
db125801b2
1 changed files with 18 additions and 0 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
name = backbit
|
||||||
|
root = "-o root -g root"
|
||||||
|
|
||||||
|
all:
|
||||||
|
echo "Program is compiled, run 'make install'"
|
||||||
|
|
||||||
|
install:
|
||||||
|
install -dm700 $(root) /var/log/$(name)
|
||||||
|
install -Dm755 $(root) src/backbit* $(DESTDIR)/bin
|
||||||
|
install -dm755 $(root) /etc/$(name)/{db,dir}
|
||||||
|
install -Dm644 $(root) conf/before.sh-sample /etc/$(name)
|
||||||
|
install -Dm644 $(root) conf/after.sh-sample /etc/$(name)
|
||||||
|
install -Dm644 $(root) conf/conf-dir-sample /etc/$(name)
|
||||||
|
install -Dm644 $(root) conf/conf-db-sample /etc/$(name)
|
||||||
|
|
||||||
|
uninstall:
|
||||||
|
rm -f $(DESTDIR)/bin/backbit{,dir,db}
|
||||||
|
echo "There may be files remaining in /etc/backbit and /var/log/backbit"
|
Loading…
Reference in a new issue