~ubuntu-branches/ubuntu/trusty/hyperestraier/trusty

« back to all changes in this revision

Viewing changes to perlnative/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2006-11-14 05:28:32 UTC
  • mfrom: (2.1.4 feisty)
  • Revision ID: james.westby@ubuntu.com-20061114052832-0lzqzcefn8mt4yqe
Tags: 1.4.9-1.1
* Non-maintainer upload.
* High-urgency upload for RC bugfix.
* Set HOME=$(CURDIR)/junkhome when building, otherwise the package build
  will incorrectly look for headers there -- and fail when the directory
  exists and is unreadable, as happens sometimes on sudo-using
  autobuilders!

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile for the Perl binding of Hyper Estraier
 
2
 
 
3
 
 
4
 
 
5
#================================================================
 
6
# Setting Variables
 
7
#================================================================
 
8
 
 
9
 
 
10
# Generic settings
 
11
SHELL = @SHELL@
 
12
 
 
13
# Packaging
 
14
PACKAGE = @PACKAGE_NAME@
 
15
VERSION = @PACKAGE_VERSION@
 
16
 
 
17
# Targets
 
18
MYPLBINS = estcmd.pl
 
19
 
 
20
# Install destinations
 
21
prefix = @prefix@
 
22
exec_prefix = @exec_prefix@
 
23
MYPLLIBDIR = @MYPLLIBDIR@
 
24
MYPLBINDIR = @bindir@
 
25
DESTDIR =
 
26
 
 
27
# Building binaries
 
28
PERL = @PERL@
 
29
POD2HTML = @POD2HTML@
 
30
CC = gcc
 
31
INC = -I. -I../.. -I$(HOME)/include -I/usr/local/include
 
32
OPTIMIZE = -O3 -fomit-frame-pointer -fforce-addr
 
33
LD = ld
 
34
LIBS = -L../.. -L$(HOME)/lib -L/usr/local/lib @LIBS@
 
35
RUNENV = LD_LIBRARY_PATH=.:..:/lib:/usr/lib:$(HOME)/lib:/usr/local/lib:@MYRUNPATH@
 
36
 
 
37
 
 
38
 
 
39
#================================================================
 
40
# Actions
 
41
#================================================================
 
42
 
 
43
 
 
44
all :
 
45
        ( cd src && if ! [ -f Makefile ] ; \
 
46
          then $(RUNENV) $(PERL) Makefile.PL CC="$(CC)" INC="$(INC)" OPTIMIZE="$(OPTIMIZE)" \
 
47
          LD="$(LD)" LIBS="$(LIBS)" PREFIX="$(prefix)" ; fi )
 
48
        ( cd src && make )
 
49
        @printf '\n'
 
50
        @printf '#================================================================\n'
 
51
        @printf '# Ready to install.\n'
 
52
        @printf '#================================================================\n'
 
53
 
 
54
 
 
55
clean :
 
56
        ( cd src && if [ -f Makefile ] ; then make -i clean ; fi )
 
57
        cd src && rm -rf Makefile blib pm_to_blib *.c *.o *.bs *.old casket *~
 
58
        rm -rf check.out casket *~
 
59
 
 
60
 
 
61
install :
 
62
        cd src && $(RUNENV) make install
 
63
        mkdir -p $(DESTDIR)$(MYPLBINDIR)
 
64
        cp -Rf $(MYPLBINS) $(DESTDIR)$(MYPLBINDIR)
 
65
        @printf '\n'
 
66
        @printf '#================================================================\n'
 
67
        @printf '# Thanks for using Hyper Estraier for Perl.\n'
 
68
        @printf '#================================================================\n'
 
69
 
 
70
 
 
71
uninstall :
 
72
        find $(DESTDIR)$(MYPLLIBDIR) -print | egrep 'Estraier(\.pm|\.so|\.bs|\.pod)?$$' | \
 
73
          egrep -v '/Search/Estraier' | xargs rm -rf
 
74
        rm -f /usr/share/man/man3/Estraier.3pm /usr/local/share/man/man3/Estraier.3pm
 
75
        cd $(DESTDIR)$(MYPLBINDIR) && rm -f $(MYPLBINS)
 
76
 
 
77
 
 
78
dist :
 
79
        autoconf
 
80
        make doc
 
81
        make distclean
 
82
 
 
83
 
 
84
distclean : clean
 
85
        ( cd src && if [ -f Makefile ] ; then make distclean ; fi )
 
86
        ( cd src && rm -rf Makefile blib pm_to_blib *.c *.o *.bs *.old casket *~ )
 
87
        cd example && make clean
 
88
        rm -rf Makefile config.cache config.log config.status autom4te.cache
 
89
 
 
90
 
 
91
check :
 
92
        rm -rf casket
 
93
        $(RUNENV) $(PERL) -I./src -w estcmd.pl put casket ../misc/test001.est
 
94
        $(RUNENV) $(PERL) -I./src -w estcmd.pl put casket ../misc/test002.est
 
95
        $(RUNENV) $(PERL) -I./src -w estcmd.pl put casket ../misc/test003.est
 
96
        $(RUNENV) $(PERL) -I./src -w estcmd.pl put casket ../misc/test004.est
 
97
        $(RUNENV) $(PERL) -I./src -w estcmd.pl put casket ../misc/test005.est
 
98
        $(RUNENV) $(PERL) -I./src -w estcmd.pl put casket ../misc/test006.est
 
99
        $(RUNENV) $(PERL) -I./src -w estcmd.pl edit casket 1 "@title" "java"
 
100
        $(RUNENV) $(PERL) -I./src -w estcmd.pl get casket 1
 
101
        $(RUNENV) $(PERL) -I./src -w estcmd.pl get casket 1 "@title"
 
102
        $(RUNENV) $(PERL) -I./src -w estcmd.pl out casket 1
 
103
        $(RUNENV) $(PERL) -I./src -w estcmd.pl inform casket
 
104
        $(RUNENV) $(PERL) -I./src -w estcmd.pl optimize casket
 
105
        $(RUNENV) $(PERL) -I./src -w estcmd.pl search \
 
106
          -vf -cd casket "estraier" > check.out
 
107
        $(RUNENV) $(PERL) -I./src -w estcmd.pl search \
 
108
          -vs -gs -attr "@uri" -ord "@mdate NUMD" -max 1 casket "estraier OR mikio" > check.out
 
109
        rm -rf casket
 
110
 
 
111
 
 
112
doc :
 
113
        make docclean
 
114
        mkdir -p ../doc/perlnativeapi
 
115
        $(POD2HTML) --infile=src/Estraier.pod --outfile=../doc/perlnativeapi/index.html \
 
116
          --title="estraier" ; rm -f pod2*.tmp
 
117
 
 
118
 
 
119
docclean :
 
120
        rm -rf ../doc/perlnativeapi
 
121
 
 
122
 
 
123
.PHONY : all clean install casket check
 
124
 
 
125
 
 
126
 
 
127
# END OF FILE