~ubuntu-branches/ubuntu/quantal/acpid/quantal

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2008-06-02 09:58:14 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080602095814-lkjbhy9vg17k79va
Tags: 1.0.6-9ubuntu1
* Merge from debian unstable, remaining changes:
  - init script starts earlier
  - depend on sysv-rc
* removed ubuntu specific -G (lockfilegroup) options, it does
  no longer apply because acpid now uses syslog by default
* disable debian update-rc.d call to make acpid run earlier on
  upgrade, out packages already run early
* build with -D_GNU_SOURCE to make "struct ucred" available
  (see also http://sourceware.org/bugzilla/show_bug.cgi?id=6545)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Makefile for ACPI daemon
2
2
 
3
3
# update these numbers for new releases
4
 
VERSION = 1.0.4
 
4
VERSION = 1.0.6
5
5
 
6
6
INSTPREFIX =
7
7
BINDIR = $(INSTPREFIX)/usr/bin
21
21
MAN8 = acpid.8 acpi_listen.8
22
22
MAN8GZ = $(MAN8:.8=.8.gz)
23
23
 
24
 
CFLAGS = -Wall -Werror -g $(DEFS)
 
24
CFLAGS = -Wall -Werror -D_GNU_SOURCE -g $(DEFS)
25
25
DEFS = -DVERSION="\"$(VERSION)\""
26
26
 
27
27
all: $(PROGS)
35
35
 
36
36
install: $(PROGS) man
37
37
        mkdir -p $(SBINDIR)
 
38
        mkdir -p $(BINDIR)
38
39
        install -m 750 acpid $(SBINDIR)
39
40
        install -m 755 acpi_listen $(BINDIR)
40
41
        mkdir -p $(MAN8DIR)