Gentoo Archives: gentoo-commits

From: "PaweA Hajdan (phajdan.jr)" <phajdan.jr@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-misc/lockfile-progs/files: Makefile
Date: Wed, 24 Feb 2010 11:57:02
Message-Id: E1NkFrO-0003Gm-FG@stork.gentoo.org
1 phajdan.jr 10/02/24 11:56:58
2
3 Modified: Makefile
4 Log:
5 Add a test suite.
6 (Portage version: 2.1.7.16/cvs/Linux i686)
7
8 Revision Changes Path
9 1.2 app-misc/lockfile-progs/files/Makefile
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lockfile-progs/files/Makefile?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lockfile-progs/files/Makefile?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-misc/lockfile-progs/files/Makefile?r1=1.1&r2=1.2
14
15 Index: Makefile
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo-x86/app-misc/lockfile-progs/files/Makefile,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- Makefile 18 Dec 2009 17:37:06 -0000 1.1
22 +++ Makefile 24 Feb 2010 11:56:57 -0000 1.2
23 @@ -1,5 +1,7 @@
24 all: lockfile-create
25 -.PHONY: all
26 +
27 +lockfile-create: lockfile-progs.o
28 + ${CC} -o $@ ${CFLAGS} ${LDFLAGS} $^ -llockfile
29
30 install: all
31 install -d $(DESTDIR)/usr/bin
32 @@ -24,7 +26,26 @@
33 ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/mail-lock.1
34 ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/mail-unlock.1
35 ln -s lockfile-progs.1 $(DESTDIR)/usr/share/man/man1/mail-touchlock.1
36 -.PHONY: install
37
38 -lockfile-create: lockfile-progs.o
39 - ${CC} -o $@ ${CFLAGS} ${LDFLAGS} $^ -llockfile
40 +test: all
41 + lockfile-create testfile
42 + lockfile-check testfile
43 + lockfile-touch --oneshot testfile
44 + lockfile-check testfile
45 + lockfile-remove testfile
46 + ! test -e testfile
47 + ! lockfile-check testfile
48 +
49 + lockfile-create --lock-name test.lock
50 + lockfile-check --lock-name test.lock
51 + ! lockfile-check test.lock
52 + ! test -e test.lock.lock
53 + lockfile-touch --oneshot --lock-name test.lock
54 + lockfile-check --lock-name test.lock
55 + ! lockfile-check test.lock
56 + lockfile-remove --lock-name test.lock
57 + ! test -e test.lock
58 + ! lockfile-check --lock-name test.lock
59 + ! lockfile-check test.lock
60 +
61 +.PHONY: install test