~ubuntu-branches/ubuntu/raring/whichman/raring

« back to all changes in this revision

Viewing changes to .pc/00_Makefile.patch/Makefile

  • Committer: Package Import Robot
  • Author(s): Robert Luberda
  • Date: 2012-02-19 16:05:46 UTC
  • Revision ID: package-import@ubuntu.com-20120219160546-nd61zqumiov4zvbl
Tags: 2.4-7
* Switch to debhelper v9 and tiny rules file.
* Rename & refresh patches with gbp-pq import/export.
* Fix lintian's `spelling-error-in-copyright'.
* debian/rules: remove .pc/.dpkg-source-unapply file in rules.
  This fixes broken behaviour of dpkg-buildpackage (see Bug#649521).
* debian/control:
  + Standards-Version: 3.9.2 (no changes);
  + add VCS fields;
  + sort dependency fields with wrap-and-sort.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# written by Guido Socher
2
 
# overwrite with: make prefix=/some/where install
3
 
prefix=$(DESTDIR)/usr
4
 
INSTALL=install
5
 
mandir=$(prefix)/share/man
6
 
MANP=man1/whichman.1 man1/ftff.1 man1/ftwhich.1
7
 
CC=gcc
8
 
CFLAGS= -Wall -O2
9
 
#sun c/c++-compiler:
10
 
#CC=CC
11
 
#CFLAGS= -O
12
 
 
13
 
all:whichman ftff ftwhich
14
 
 
15
 
whichman: whichman.o levdist.o
16
 
        $(CC) -o $@ whichman.o levdist.o
17
 
 
18
 
ftwhich: ftwhich.o levdist.o
19
 
        $(CC) -o $@ ftwhich.o levdist.o
20
 
 
21
 
ftff: ftff.o levdist.o 
22
 
        $(CC) -o $@ ftff.o levdist.o
23
 
 
24
 
whichman.o: whichman.c 
25
 
        $(CC) $(CFLAGS) -c whichman.c
26
 
ftwhich.o: ftwhich.c 
27
 
        $(CC) $(CFLAGS) -c ftwhich.c
28
 
ftff.o: ftff.c 
29
 
        $(CC) $(CFLAGS) -c ftff.c
30
 
levdist.o: levdist.c levdist.h
31
 
        $(CC) $(CFLAGS) -c levdist.c
32
 
 
33
 
install: whichman ftff ftwhich $(MANP)
34
 
        strip whichman
35
 
        strip ftwhich
36
 
        strip ftff
37
 
        [ -d "$(prefix)/bin" ] || $(INSTALL) -d $(prefix)/bin
38
 
        [ -d "$(mandir)/man1" ] || $(INSTALL) -d $(mandir)/man1
39
 
        $(INSTALL) -m 755 whichman $(prefix)/bin
40
 
        $(INSTALL) -m 755 ftwhich $(prefix)/bin
41
 
        $(INSTALL) -m 755 ftff $(prefix)/bin
42
 
        for p in $(MANP) ; do \
43
 
                echo "installing $$p in $(mandir)/man1"; \
44
 
                $(INSTALL) -m 644 $$p $(mandir)/man1 ;\
45
 
        done
46
 
 
47
 
install_with_cp: whichman ftff ftwhich $(MANP)
48
 
        chmod 755 whichman ftff ftwhich
49
 
        [ -d "$(prefix)/bin" ] || mkdir -p $(prefix)/bin
50
 
        cp whichman ftff ftwhich $(prefix)/bin
51
 
        chmod 644 $(MANP)
52
 
        [ -d "$(mandir)/man1" ] || mkdir -p $(mandir)/man1
53
 
        cp $(MANP) $(mandir)/man1
54
 
 
55
 
debug: levdist.c
56
 
        $(CC) $(CFLAGS) -o levdebug -DDEBUG -DRETURNVALUE levdist.c
57
 
 
58
 
clean:
59
 
        rm -f whichman ftff ftwhich *.o levdebug