~ubuntu-branches/ubuntu/saucy/dhelp/saucy-proposed

« back to all changes in this revision

Viewing changes to tmp/dhelp-ruby/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2008-06-19 01:25:07 UTC
  • Revision ID: james.westby@ubuntu.com-20080619012507-adt75omul1shucde
Tags: 0.6.9ubuntu1
* Resynchronise with Debian. Remaining changes:
  - Recommends: firefox-3.0.
  - Exit zero if the bdb module is not available; this usually indicates
    that dhelp is not configured yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Makefile for dhelp project
2
 
 
3
 
# Copyright (C) 2005 Esteban Manchado Vel�zquez <zoso@debian.org>
4
 
 
5
 
# This file is free software; you can redistribute it and/or modify it
6
 
# under the terms of the GNU General Public License as published by the
7
 
# Free Software Foundation; either version 2, or (at your option) any
8
 
# later version.
9
 
 
10
 
# This file is distributed in the hope that it will be
11
 
# useful, but WITHOUT ANY WARRANTY; without even the implied warranty
12
 
# of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 
# General Public License for more details.
14
 
 
15
 
# You should have received a copy of the GNU General Public License
16
 
# along with this file; see the file COPYING.  If not, write to the Free
17
 
# Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
18
 
 
19
 
PACKAGE = dhelp
20
 
VERSION = 0.5.25
21
 
PREFIX_  = $(if $(PREFIX),$(PREFIX),/usr/local)
22
 
DESTDIR_ = $(DESTDIR)/$(PREFIX_)
23
 
 
24
 
all:
25
 
 
26
 
install:
27
 
        mkdir -p $(DESTDIR_) $(DESTDIR_)/sbin $(DESTDIR_)/bin $(DESTDIR_)/lib/cgi-bin $(DESTDIR_)/share/doc/dhelp
28
 
        # Executable files
29
 
        install dhelp_parse.rb $(DESTDIR_)/sbin/dhelp_parse.rb
30
 
        # Ruby libraries
31
 
        mkdir -p $(DESTDIR_)/lib/ruby/1.8
32
 
        cp lib/* $(DESTDIR_)/lib/ruby/1.8
33
 
        # Update PREFIX variable in dhelp_parse.rb
34
 
        sed 's|^PREFIX = .*|PREFIX = "$(PREFIX_)"|' $(DESTDIR_)/sbin/dhelp_parse.rb >$(DESTDIR_)/sbin/dhelp_parse
35
 
        rm -f $(DESTDIR_)/sbin/dhelp_parse.rb
36
 
        chmod a+x $(DESTDIR_)/sbin/dhelp_parse
37
 
        install dhelp $(DESTDIR_)/bin/dhelp
38
 
        install dsearch $(DESTDIR_)/lib/cgi-bin/dsearch
39
 
        # Misc files/dirs
40
 
        for file in CREDITS doc/*; do \
41
 
            cp $$file $(DESTDIR_)/share/doc/dhelp/; \
42
 
        done
43
 
        mkdir -p $(DESTDIR_)/share/doc/HTML
44
 
        mkdir -p $(DESTDIR_)/share/dhelp
45
 
        cp {index,category}.rhtml $(DESTDIR_)/share/dhelp/
46
 
 
47
 
test:
48
 
        RUBYLIB=lib:test ruby -w test/ts_dhelp.rb
49
 
 
50
 
.PHONY: test