Debian Codegraph @

Makefile

raw ◀ ▶
Source reconstructed at patch state 0 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 PREFIX=$(DESTDIR)/usr
2 BINDIR=bin/
3 #NO_X11=1 # (Uncomment this to disable X11 Support)
4
5 PACKAGE_VERSION=`awk '/RELEASE/ {print $$3}' brightd.c | tr -d \" | head -n1`
6
7 CFLAGS=-g -Wall -pedantic
8 MAN_NO_X11=1
9 ifndef NO_X11
10 MAN_NO_X11=0
11 A_CFLAGS=-lX11 -lXss -DX11
12 endif
13
14 all: brightd brightd.1
15
16 brightd: brightd.c
17 gcc $(CFLAGS) $(A_CFLAGS) -o $@ [email protected]
18
19 brightd.1:
20 sed -re 's/^\.nr no_x11 [01]/.nr no_x11 $(MAN_NO_X11)/' brightd.1.tpl > brightd.1
21
22 install:
23 install -Ds brightd $(PREFIX)/$(BINDIR)/brightd
24 install -D brightd.1 $(PREFIX)/share/man/man1/brightd.1
25
26 uninstall:
27 rm $(PREFIX)/$(BINDIR)/brightd
28 rm $(PREFIX)/share/man/man1/brightd.1
29
30 clean:
31 rm -f brightd brightd.1
32
33 # Source tarball generation
34 source:
35 mkdir brightd-$(PACKAGE_VERSION)/
36 cp brightd.{1.tpl,c} ChangeLog gpl.txt Makefile README brightd-$(PACKAGE_VERSION)/
37 tar cjf brightd-$(PACKAGE_VERSION).tar.bz2 brightd-$(PACKAGE_VERSION)/
38 rm -rf brightd-$(PACKAGE_VERSION)/