# breezed is a fan speed control daemon for Linux computers. # # Copyright (c) 2008 Francois Fleuret # Written by Francois Fleuret # # This file is part of breezed. # # breezed is free software: you can redistribute it and/or modify it # under the terms of the GNU General Public License version 3 as # published by the Free Software Foundation. # # breezed is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # 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 CFLAGS = -Wall -ansi -pedantic -DREVISION_NUMBER=$(REVISION_NUMBER) $(OPTIMIZE_FLAG) all: breezed breezed: breezed.c $(CC) -o $@ $^ $(LDFLAGS) 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) gzip $(MAN_PATH)/breezed.1 install -m 755 breezed-pm-utils.sh $(PM_SLEEPD)/50breezed 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 /etc/init.d/breezed.sh rm $(BINARY_PATH)/breezed clean: \rm -f breezed