~ubuntu-branches/ubuntu/wily/brightd/wily

« back to all changes in this revision

Viewing changes to .pc/fix-ftbfs-with-binutils-gold/Makefile

  • Committer: Package Import Robot
  • Author(s): Angel Abad
  • Date: 2014-06-14 12:56:49 UTC
  • Revision ID: package-import@ubuntu.com-20140614125649-7opn2euk7puj1m65
Tags: 0.4.1-1ubuntu1
* debian/patches/fix-ftbfs-with-binutils-gold:
  - Reorder gcc flags to fix FTBFS with binutils-gold
    (Closes: #751571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 $@ $@.c
 
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)/