X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?p=breezed.git;a=blobdiff_plain;f=Makefile;h=320c4b5cc5c2e6b9cc232f8e2e25d2d2dc003f00;hp=bb976449e2207dc5e98526e44f4120a03f89e366;hb=759e42aaa75e2deba27b7fb310fdf42b89a55d1f;hpb=767e4a6525a02fff758450bf61430e2ef10fdc06 diff --git a/Makefile b/Makefile index bb97644..320c4b5 100644 --- a/Makefile +++ b/Makefile @@ -18,10 +18,30 @@ # You should have received a copy of the GNU General Public License # along with breezed. If not, see . +BINARY_PATH = /usr/bin +MAN_PATH = /usr/share/man/man1 +PM_SLEEPD = /usr/lib/pm-utils/sleep.d + all: breezed breezed: breezed.cc g++ -o breezed breezed.cc +install: breezed /etc/breezed.conf + install -m 755 breezed $(BINARY_PATH) + install -m 755 breezed.sh /etc/init.d/ + install -m 644 breezed.1 $(MAN_PATH) + install -m 755 breezed-pm-utils.sh $(PM_SLEEPD)/50breezed + gzip $(MAN_PATH)/breezed.1 + update-rc.d breezed.sh defaults + /etc/init.d/breezed.sh start + +uninstall: + /etc/init.d/breezed.sh stop + update-rc.d -f breezed.sh remove + rm $(PM_SLEEPD)/50breezed + rm $(MAN_PATH)/breezed.1.gz + rm $(BINARY_PATH)/breezed + clean: \rm -f breezed