~ubuntu-branches/debian/lenny/whichman/lenny

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2001-12-22 22:22:00 UTC
  • Revision ID: james.westby@ubuntu.com-20011222222200-fe9i20cox60s4unq
Tags: 2.0-2
* Corrected spelling error in description (closes: #125481) and upstream
  README file. Thanks to Matt Ziemmerman.
* Standards-Version: 3.5.6 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
#CC=CC
9
9
#CFLAGS= -O
10
10
 
 
11
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
12
        CFLAGS += -g
 
13
endif
 
14
ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
15
        STRIP = :
 
16
else
 
17
        STRIP = strip
 
18
endif
 
19
 
11
20
all:whichman ftff ftwhich
12
21
 
13
22
whichman: whichman.o levdist.o
29
38
        $(CC) $(CFLAGS) -c levdist.c
30
39
 
31
40
install: whichman ftff ftwhich $(MANP)
32
 
        strip whichman
33
 
        strip ftwhich
34
 
        strip ftff
 
41
        $(STRIP) whichman
 
42
        $(STRIP) ftwhich
 
43
        $(STRIP) ftff
35
44
        [ -d "$(PREFIX)/bin" ] || $(INSTALL) -d $(PREFIX)/bin
36
 
        [ -d "$(PREFIX)/man/man1" ] || $(INSTALL) -d $(PREFIX)/man/man1
 
45
        [ -d "$(PREFIX)/share/man/man1" ] || $(INSTALL) -d $(PREFIX)/share/man/man1
37
46
        $(INSTALL) -m 755 whichman $(PREFIX)/bin
38
47
        $(INSTALL) -m 755 ftwhich $(PREFIX)/bin
39
48
        $(INSTALL) -m 755 ftff $(PREFIX)/bin
40
49
        for p in $(MANP) ; do \
41
 
                echo "installing $$p in $(PREFIX)/man/man1"; \
42
 
                $(INSTALL) -m 644 $$p $(PREFIX)/man/man1 ;\
 
50
                echo "installing $$p in $(PREFIX)/share/man/man1"; \
 
51
                $(INSTALL) -p -m 644 $$p $(PREFIX)/share/man/man1 ;\
43
52
        done
44
53
 
45
54
install_with_cp: whichman ftff ftwhich $(MANP)