~ubuntu-branches/ubuntu/trusty/net-snmp/trusty

« back to all changes in this revision

Viewing changes to Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-12-08 14:59:50 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20071208145950-u1tykhpw56nyzqik
Tags: 5.4.1~dfsg-4ubuntu1
* Merge from debian unstable.
* Remaining Ubuntu changes:
  - Remove stop links from rc0 and rc6
  - Munge Maintainer field as per spec.
* Ubuntu changes dropped:
  - Symlink common files between the packages, CDBS ought to handle that
    for us automatically.
* The latest Debian changes has dropped history from the changelog. Slot in
  the Ubuntu changes as best I can. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
INSTALLHEADERS=version.h
17
17
INCLUDESUBDIR=system
18
18
INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \
19
 
        darwin.h darwin7.h darwin8.h freebsd5.h freebsd6.h \
 
19
        darwin.h darwin7.h darwin8.h darwin9.h freebsd5.h freebsd6.h \
20
20
        dynix.h freebsd2.h freebsd3.h freebsd4.h freebsd.h generic.h hpux.h \
21
21
        irix.h linux.h mingw32.h mips.h netbsd.h openbsd.h osf5.h \
22
 
        solaris2.6.h solaris2.7.h solaris2.8.h solaris2.9.h solaris2.10.h \
23
 
        solaris.h sunos.h svr5.h sysv.h ultrix4.h
 
22
        solaris2.3.h solaris2.4.h solaris2.5.h solaris2.6.h \
 
23
        solaris.h sunos.h svr5.h sysv.h ultrix4.h dragonfly.h
24
24
INCLUDESUBDIR2=machine
25
25
INCLUDESUBDIRHEADERS2=generic.h
26
26
INSTALLBUILTHEADERS=include/net-snmp/net-snmp-config.h
30
30
#
31
31
# other install rules.
32
32
#
33
 
OTHERINSTALL=copypersistentfiles @PERLINSTALLTARGS@
34
 
OTHERUNINSTALL=@PERLUNINSTALLTARGS@
 
33
OTHERINSTALL=copypersistentfiles @PERLINSTALLTARGS@ @PYTHONINSTALLTARGS@
 
34
OTHERUNINSTALL=@PERLUNINSTALLTARGS@ @PYTHONUNINSTALLTARGS@
35
35
COPY_PERSISTENT_FILES=@COPY_PERSISTENT_FILES@
36
36
PERSISTENT_DIRECTORY=@PERSISTENT_DIRECTORY@
37
37
UCDPERSISTENT_DIRECTORY=@UCDPERSISTENT_DIRECTORY@
44
44
PERLARGS=@PERLARGS@
45
45
 
46
46
#
 
47
# python specific
 
48
#
 
49
PYTHONARGS=@PYTHONARGS@
 
50
 
 
51
#
47
52
# libtool
48
53
#
49
54
LIBTOOL_DEPS = @LIBTOOL_DEPS@
51
56
#
52
57
# targets
53
58
#
54
 
all:    sedscript EXAMPLE.conf standardall net-snmp-config-x @PERLTARGS@ 
 
59
all:    sedscript EXAMPLE.conf standardall net-snmp-config-x @PERLTARGS@ @PYTHONTARGS@
55
60
 
56
61
start-flag:
57
62
        @touch build-in-progress-flag
99
104
 
100
105
docs: docsdir mancp
101
106
 
102
 
docsdir: docsdox docsmunge
 
107
docsdir: docsdox
103
108
 
104
109
docsdox: doxygen.conf
105
110
        srcdir=$(srcdir) doxygen $(srcdir)/doxygen.conf
106
111
        -rm docs/man/man3/todo.3
107
112
        -rm docs/man/man3/deprecated.3
108
113
 
109
 
docsmunge:
110
 
        $(FIND) docs/html -name \*.html -exec $(PERL) -p -i -e 's/Generated on/<!--#include virtual=\"\/sfbutton.html\" --><br>Generated on\n/; s/<body/<body bgcolor=white/' {} \;
111
 
 
112
 
 
113
114
mancp:
114
115
        @for i in docs/man/man3/* ; do \
115
116
             cp $$i man/netsnmp_`basename $$i` ; \
148
149
distall: ${srcdir}/configure ${srcdir}/include/net-snmp/net-snmp-config.h 
149
150
 
150
151
OTHERCLEANTARGETS=EXAMPLE.conf sedscript
151
 
OTHERCLEANTODOS=perlclean
 
152
OTHERCLEANTODOS=perlclean @PYTHONCLEANTARGS@
152
153
 
153
154
#
154
155
# perl specific build rules
155
156
#
156
 
perlmodules: perlmakefiles
157
 
        @(cd perl ; $(MAKE)) ; \
 
157
# override LD_RUN_PATH to avoid dependencies on the build directory
 
158
perlmodules: perlmakefiles subdirs
 
159
        @(cd perl ; $(MAKE) LD_RUN_PATH="$(libdir):`$(PERL) -e 'use Config; print qq($$Config{archlibexp}/CORE);'`") ; \
158
160
        if test $$? != 0 ; then \
159
161
           exit 1 ; \
160
162
        fi
195
197
 
196
198
 
197
199
#
 
200
# python specific build rules
 
201
#
 
202
PYMAKE=$(PYTHON) setup.py $(PYTHONARGS)
 
203
pythonmodules: 
 
204
        @(dir=`pwd`; cd python; $(PYMAKE) build --basedir=$$dir) ; \
 
205
        if test $$? != 0 ; then \
 
206
           exit 1 ; \
 
207
        fi
 
208
 
 
209
pythoninstall:
 
210
        @(dir=`pwd`; cd python; $(PYMAKE) install --basedir=$$dir) ; \
 
211
        if test $$? != 0 ; then \
 
212
           exit 1 ; \
 
213
        fi
 
214
 
 
215
pythonuninstall:
 
216
        echo "WARNING: python doesn't support uninstall"
 
217
 
 
218
pythontest:
 
219
        @(dir=`pwd`; cd python; $(PYMAKE) test --basedir=$$dir) ; \
 
220
        if test $$? != 0 ; then \
 
221
           exit 1 ; \
 
222
        fi
 
223
 
 
224
pythonclean:
 
225
        @(dir=`pwd`; cd python; $(PYMAKE) clean --basedir=$$dir)
 
226
 
 
227
 
 
228
#
198
229
# make distclean completely removes all traces of building including
199
230
# any files generated by configure itself.
200
231
#
225
256
                agent/mibgroup/mib_module_inits.h       \
226
257
                agent/mibgroup/mib_module_shutdown.h    \
227
258
                agent/mibgroup/mib_module_dot_conf.h
 
259
        rm -rf mk
228
260
        rm -f *.core
229
261
 
230
262
#
290
322
#
291
323
# Internal distribution packaging, etc.
292
324
#
293
 
tag:
294
 
        @if test "x$(VERSION)" = "x"; then \
295
 
          echo "you need to supply a VERSION string."; \
296
 
          exit 2; \
297
 
        fi
298
 
        ${srcdir}/agent/mibgroup/versiontag $(VERSION) tag
 
325
#tag:
 
326
#       @if test "x$(VERSION)" = "x"; then \
 
327
#         echo "you need to supply a VERSION string."; \
 
328
#         exit 2; \
 
329
#       fi
 
330
#       ${srcdir}/agent/mibgroup/versiontag $(VERSION) tag
299
331
 
300
332
tar:
301
333
        @if test "x$(VERSION)" = "x"; then \
322
354
 
323
355
commentcheck:
324
356
        @echo "Checking for C++ style comments..."
325
 
        @grep -n -E "([^:)n]|^)//" `$(FIND) $(top_srcdir) -path './win32' -prune -o -name \*.\[ch\]` && exit 1
 
357
        @grep -n -E "([^:)n]|^)//" `$(FIND) $(top_srcdir) -path './win32' -prune -o -name \*.\[ch\] | grep -v agent/mibgroup/winExtDLL.c` && exit 1
326
358
 
327
359
# always exit 1, since I can't figure out how to invert grep rc
328
360
makefilecheck:
330
362
        @grep -n "\.c=" `$(FIND) $(top_srcdir) -name "Makefile.*"`
331
363
        @exit 1
332
364
 
333
 
dist: tag tar
 
365
dist: tar
334
366
 
335
367
FAQ.html:
336
368
        local/FAQ2HTML FAQ