~ubuntu-branches/ubuntu/trusty/irssi-plugin-xmpp/trusty

« back to all changes in this revision

Viewing changes to src/rules.mk

  • Committer: Package Import Robot
  • Author(s): Florian Schlichting
  • Date: 2012-04-08 15:34:43 UTC
  • mfrom: (2.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120408153443-86n5vxw5ur1zungb
Tags: 0.52-1
* New Maintainer (closes: #667987).
* Imported Upstream version 0.52 (closes: #661302).
  + fixing MUC invites to be compliant (closes: #609530).
* Bumped debhelper compatibility to level 9.
* Refreshed debian/copyright, switching to copyright-format 1.0.
* Bumped Standards-Version to 3.9.3 (no further changes).
* Renamed docs to irssi-plugin-xmpp.docs, include all of docs/, TODO.
* Switched to short debian/rules.
* Added a watch file.
* Added pkg-config to build-dependencies.
* Added Homepage field to source package control paragraph.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: rules.mk,v 1.8 2009/06/03 15:15:54 cdidier Exp $
 
1
# $Id: rules.mk,v 1.9 2010/10/24 16:09:24 cdidier Exp $
2
2
 
3
3
include ../../config.mk
4
4
 
5
5
OBJS = ${SRCS:.c=.o}
6
6
 
7
 
all: ${LIB}
 
7
LIBSO=lib${LIB}.so
 
8
 
 
9
all: ${LIBSO}
8
10
 
9
11
.c.o:
10
 
        ${CC} ${CFLAGS} -o $@ -c $<
 
12
        ${CC} ${CFLAGS} ${INCS} -o $@ -c $<
11
13
 
12
 
${LIB}: ${OBJS}
13
 
        ${CC} ${LDFLAGS} -o lib$@.so ${OBJS}
 
14
${LIBSO}: ${OBJS}
 
15
        ${CC} ${LDFLAGS} -o $@ ${OBJS} ${LIBS}
14
16
 
15
17
clean:
16
 
        rm -f lib${LIB}.so ${OBJS}
 
18
        rm -f ${LIBSO} ${OBJS}
17
19
 
18
20
install: all
19
 
        @echo installing the module lib${LIB}.so to ${DESTDIR}${IRSSI_LIB}/modules
 
21
        @echo installing the module ${LIBSO} to ${DESTDIR}${IRSSI_LIB}/modules
20
22
        install -d ${DESTDIR}${IRSSI_LIB}/modules
21
 
        install lib${LIB}.so ${DESTDIR}${IRSSI_LIB}/modules
 
23
        install ${LIBSO} ${DESTDIR}${IRSSI_LIB}/modules
22
24
 
23
25
uninstall:
24
 
        @echo deinstalling the module lib${LIB}.so from ${DESTDIR}${IRSSI_LIB}/modules
25
 
        rm -f ${DESTDIR}${IRSSI_LIB}/modules/lib${LIB}.so
 
26
        @echo deinstalling the module ${LIBSO} from ${DESTDIR}${IRSSI_LIB}/modules
 
27
        rm -f ${DESTDIR}${IRSSI_LIB}/modules/${LIBSO}
26
28
 
27
29
user-install:
28
30
        env DESTDIR= IRSSI_LIB=~/.irssi ${MAKE} install