Newer
Older
brightd / Makefile
PREFIX=/

brightd: brightd.c
	gcc $(CFLAGS) -g -Wall -lX11 -lXss -o $@ $@.c

install: brightd
	install -Ds brightd $(PREFIX)/usr/bin/brightd
	install -D brightd.1 $(PREFIX)/usr/share/man/man1/brightd.1

uninstall:
	rm $(PREFIX)/usr/bin/brightd
	rm $(PREFIX)/usr/share/man/man1/brightd.1

clean:
	rm -f brightd

# Package generation
PACKAGE_VERSION=`awk '/RELEASE/ {print $$3}' brightd.c | tr -d \" | head -n1`
package: brightd
	mkdir brightd-$(PACKAGE_VERSION)/
	cp brightd.{1,c} ChangeLog gpl.txt Makefile README brightd-$(PACKAGE_VERSION)/
	tar cjf brightd-$(PACKAGE_VERSION).tar.bz2 brightd-$(PACKAGE_VERSION)/
	rm -rf brightd-$(PACKAGE_VERSION)/