source: trunk/third/rpm/Makefile.in @ 17931

Revision 17931, 32.2 KB checked in by ghudson, 22 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r17930, which included commits to RCS files with non-trunk default branches.
Line 
1# Makefile.in generated automatically by automake 1.4-p5 from Makefile.am
2
3# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
4# This Makefile.in is free software; the Free Software Foundation
5# gives unlimited permission to copy and/or distribute it,
6# with or without modifications, as long as this notice is preserved.
7
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11# PARTICULAR PURPOSE.
12
13# Top level Makefile for rpm
14
15
16SHELL = @SHELL@
17
18srcdir = @srcdir@
19top_srcdir = @top_srcdir@
20VPATH = @srcdir@
21prefix = @prefix@
22exec_prefix = @exec_prefix@
23
24bindir = @bindir@
25sbindir = @sbindir@
26libexecdir = @libexecdir@
27datadir = @datadir@
28sysconfdir = @sysconfdir@
29sharedstatedir = @sharedstatedir@
30localstatedir = @localstatedir@
31libdir = @libdir@
32infodir = @infodir@
33mandir = @mandir@
34includedir = @includedir@
35oldincludedir = /usr/include
36
37DESTDIR =
38
39pkgdatadir = $(datadir)/@PACKAGE@
40pkgincludedir = $(includedir)/@PACKAGE@
41
42top_builddir = .
43
44ACLOCAL = @ACLOCAL@
45AUTOCONF = @AUTOCONF@
46AUTOMAKE = @AUTOMAKE@
47AUTOHEADER = @AUTOHEADER@
48
49INSTALL = @INSTALL@
50INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
51INSTALL_DATA = @INSTALL_DATA@
52INSTALL_SCRIPT = @INSTALL_SCRIPT@
53transform = @program_transform_name@
54
55NORMAL_INSTALL = :
56PRE_INSTALL = :
57POST_INSTALL = :
58NORMAL_UNINSTALL = :
59PRE_UNINSTALL = :
60POST_UNINSTALL = :
61build_alias = @build_alias@
62build_triplet = @build@
63host_alias = @host_alias@
64host_triplet = @host@
65target_alias = @target_alias@
66target_triplet = @target@
67AR = @AR@
68AS = @AS@
69AWK = @AWK@
70BUILD_INCLUDED_LIBINTL = @BUILD_INCLUDED_LIBINTL@
71BUILD_RPMNLSTOOLS = @BUILD_RPMNLSTOOLS@
72BZIP2BIN = @BZIP2BIN@
73CATALOGS = @CATALOGS@
74CATOBJEXT = @CATOBJEXT@
75CC = @CC@
76CPP = @CPP@
77CSCOPE = @CSCOPE@
78CTAGS = @CTAGS@
79CXX = @CXX@
80DATADIRNAME = @DATADIRNAME@
81DBLIBOBJS = @DBLIBOBJS@
82DBLIBSRCS = @DBLIBSRCS@
83DLLTOOL = @DLLTOOL@
84ECHO = @ECHO@
85EXEEXT = @EXEEXT@
86FINDPROVIDES = @FINDPROVIDES@
87FINDREQUIRES = @FINDREQUIRES@
88FIXPERMS = @FIXPERMS@
89GENCAT = @GENCAT@
90GLIBC21 = @GLIBC21@
91GMOFILES = @GMOFILES@
92GMSGFMT = @GMSGFMT@
93GZIPBIN = @GZIPBIN@
94INCPATH = @INCPATH@
95INSTOBJEXT = @INSTOBJEXT@
96INTLBISON = @INTLBISON@
97INTLLIBS = @INTLLIBS@
98INTLOBJS = @INTLOBJS@
99INTL_LIBTOOL_SUFFIX_PREFIX = @INTL_LIBTOOL_SUFFIX_PREFIX@
100LDFLAGS_STATIC = @LDFLAGS_STATIC@
101LIBDIR = @LIBDIR@
102LIBICONV = @LIBICONV@
103LIBMISC = @LIBMISC@
104LIBOBJS = @LIBOBJS@
105LIBRPMALIAS_FILENAME = @LIBRPMALIAS_FILENAME@
106LIBRPMRC_FILENAME = @LIBRPMRC_FILENAME@
107LIBTOOL = @LIBTOOL@
108LN_S = @LN_S@
109LOCALEDIR = @LOCALEDIR@
110MACROFILES = @MACROFILES@
111MAKEINFO = @MAKEINFO@
112MKDIR = @MKDIR@
113MKDIR_P = @MKDIR_P@
114MKINSTALLDIRS = @MKINSTALLDIRS@
115MSGFMT = @MSGFMT@
116OBJDUMP = @OBJDUMP@
117OBJEXT = @OBJEXT@
118PACKAGE = @PACKAGE@
119PGPBIN = @PGPBIN@
120POFILES = @POFILES@
121POSUB = @POSUB@
122RANLIB = @RANLIB@
123ROOT_GROUP = @ROOT_GROUP@
124RPM = @RPM@
125RPMCANONARCH = @RPMCANONARCH@
126RPMCANONOS = @RPMCANONOS@
127RPMCANONVENDOR = @RPMCANONVENDOR@
128RPMCONFIGDIR = @RPMCONFIGDIR@
129RPMGID = @RPMGID@
130RPMGROUP = @RPMGROUP@
131RPMUID = @RPMUID@
132RPMUSER = @RPMUSER@
133STRIP = @STRIP@
134SYSCONFIGDIR = @SYSCONFIGDIR@
135U = @U@
136UNZIPBIN = @UNZIPBIN@
137USE_INCLUDED_LIBINTL = @USE_INCLUDED_LIBINTL@
138USE_NLS = @USE_NLS@
139VERSION = @VERSION@
140WITH_APIDOCS = @WITH_APIDOCS@
141WITH_APIDOCS_TARGET = @WITH_APIDOCS_TARGET@
142WITH_BZIP2 = @WITH_BZIP2@
143WITH_DB_SUBDIR = @WITH_DB_SUBDIR@
144WITH_INTERNAL_DB = @WITH_INTERNAL_DB@
145WITH_PYTHON_SUBDIR = @WITH_PYTHON_SUBDIR@
146WITH_PYTHON_SUBPACKAGE = @WITH_PYTHON_SUBPACKAGE@
147WITH_PYTHON_VERSION = @WITH_PYTHON_VERSION@
148WITH_ZLIB_INCLUDE = @WITH_ZLIB_INCLUDE@
149WITH_ZLIB_LIB = @WITH_ZLIB_LIB@
150WITH_ZLIB_SUBDIR = @WITH_ZLIB_SUBDIR@
151__CAT = @__CAT@
152__CHGRP = @__CHGRP@
153__CHGRP_RHF = @__CHGRP_RHF@
154__CHMOD = @__CHMOD@
155__CHOWN = @__CHOWN@
156__CHOWN_RHF = @__CHOWN_RHF@
157__CP = @__CP@
158__CPIO = @__CPIO@
159__DOXYGEN = @__DOXYGEN@
160__FILE = @__FILE@
161__GPG = @__GPG@
162__GREP = @__GREP@
163__ID = @__ID@
164__ID_U = @__ID_U@
165__INSTALL = @__INSTALL@
166__LD = @__LD@
167__MAKE = @__MAKE@
168__MKDIR = @__MKDIR@
169__MV = @__MV@
170__NM = @__NM@
171__OBJCOPY = @__OBJCOPY@
172__OBJDUMP = @__OBJDUMP@
173__PATCH = @__PATCH@
174__PERL = @__PERL@
175__PYTHON = @__PYTHON@
176__RM = @__RM@
177__RSH = @__RSH@
178__SED = @__SED@
179__SSH = @__SSH@
180__STRIP = @__STRIP@
181__TAR = @__TAR@
182libdb3 = @libdb3@
183libdb3a = @libdb3a@
184testdir = @testdir@
185tmpdir = @tmpdir@
186varprefix = @varprefix@
187
188AUTOMAKE_OPTIONS = 1.4 foreign
189
190EXTRA_DIST = CHANGES CREDITS Doxyheader GROUPS README.amiga INSTALL \
191        RPM-GPG-KEY RPM-PGP-KEY \
192        autodeps/none autodeps/*.prov autodeps/*.req autogen.sh \
193        config.site db db3/configure gendiff installplatform platform* \
194        Perl-RPM po/*.in po/*.po po/rpm.pot \
195        rpm.magic rpmpopt-$(VERSION) rpmqv.c rpm.c
196
197
198SUBDIRS = intl po @WITH_ZLIB_SUBDIR@ @WITH_DB_SUBDIR@ popt beecrypt rpmio rpmdb lib build misc @WITH_PYTHON_SUBDIR@ tools scripts tests doc .
199
200INCLUDES = \
201        -I$(top_srcdir)/build \
202        -I$(top_srcdir)/lib \
203        -I$(top_srcdir)/rpmdb \
204        -I$(top_srcdir)/rpmio \
205        -I$(top_srcdir)/beecrypt \
206        -I$(top_srcdir)/popt \
207        @WITH_ZLIB_INCLUDE@ \
208        @INCPATH@
209
210
211LIBS = -lrt -lpthread
212
213myLDFLAGS = @LDFLAGS_STATIC@
214
215# XXX libtool can/should generate dependent libs.
216# XXX solaris2.6 cannot use *.la with --all-static (downrev binutils/egcs?)
217# XXX top_builddir ldpaths are wrong building in tree
218myLDADD = \
219        $(top_builddir)/build/librpmbuild.la \
220        $(top_builddir)/lib/librpm.la \
221        $(top_builddir)/rpmdb/librpmdb.la \
222        $(top_builddir)/rpmio/librpmio.la \
223        $(top_builddir)/popt/libpopt.la \
224        @WITH_ZLIB_LIB@ \
225        @INTLLIBS@ @LIBMISC@
226
227
228rpmbindir = `echo $(bindir) | sed -e s,usr/bin,bin,`
229rpmbin_PROGRAMS = rpm
230
231bin_PROGRAMS = rpm2cpio
232bin_SCRIPTS = gendiff
233
234pkglibdir = @RPMCONFIGDIR@
235pkglib_PROGRAMS = rpmb rpmd rpmi rpmk rpmq
236pkglib_DATA = rpmrc rpmpopt-$(VERSION) macros
237pkglib_SCRIPTS = find-provides find-requires mkinstalldirs \
238                        config.guess config.sub config.site
239
240
241noinst_HEADERS = \
242        acconfig.h      build.h         debug.h         system.h
243
244
245rpm_SOURCES =
246rpm_LDFLAGS = @LDFLAGS_STATIC@ $(myLDFLAGS)
247rpm_LDADD = rpm.o $(myLDADD)
248
249#rpm_SOURCES =          rpm.c
250#rpm_LDFLAGS =          @LDFLAGS_STATIC@ $(myLDFLAGS)
251#rpm_LDADD =            $(myLDADD)
252
253rpmb_SOURCES = build.c
254rpmb_LDFLAGS = $(myLDFLAGS)
255rpmb_LDADD = rpmb.o $(myLDADD)
256
257rpmd_SOURCES =
258rpmd_LDFLAGS = $(myLDFLAGS)
259rpmd_LDADD = rpmd.o $(myLDADD)
260
261rpmi_SOURCES =
262rpmi_LDFLAGS = $(myLDFLAGS)
263rpmi_LDADD = rpmi.o $(myLDADD)
264
265rpmk_SOURCES =
266rpmk_LDFLAGS = $(myLDFLAGS)
267rpmk_LDADD = rpmk.o $(myLDADD)
268
269rpmq_SOURCES =
270rpmq_LDFLAGS = $(myLDFLAGS)
271rpmq_LDADD = rpmq.o $(myLDADD)
272
273rpm2cpio_SOURCES = rpm2cpio.c
274rpm2cpio_LDFLAGS = $(myLDFLAGS)
275rpm2cpio_LDADD = $(myLDADD) @LIBMISC@
276
277CVSTAG = r$(subst .,-,$(VERSION))
278
279pkgsrcdir = $(prefix)/src/$(RPMCANONVENDOR)
280ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
281mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
282CONFIG_HEADER = config.h
283CONFIG_CLEAN_FILES =  Doxyfile rpmrc macros platform rpmpopt rpm.spec
284bin_PROGRAMS =  rpm2cpio$(EXEEXT)
285pkglib_PROGRAMS =  rpmb$(EXEEXT) rpmd$(EXEEXT) rpmi$(EXEEXT) \
286rpmk$(EXEEXT) rpmq$(EXEEXT)
287rpmbin_PROGRAMS =  rpm$(EXEEXT)
288PROGRAMS =  $(bin_PROGRAMS) $(pkglib_PROGRAMS) $(rpmbin_PROGRAMS)
289
290
291DEFS = @DEFS@ -I. -I$(srcdir) -I.
292CPPFLAGS = @CPPFLAGS@
293LDFLAGS = @LDFLAGS@
294rpm2cpio_OBJECTS =  rpm2cpio.$(OBJEXT)
295rpm2cpio_DEPENDENCIES =  $(top_builddir)/build/librpmbuild.la \
296$(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
297$(top_builddir)/rpmio/librpmio.la $(top_builddir)/popt/libpopt.la
298rpmb_OBJECTS =  build.$(OBJEXT)
299rpmb_DEPENDENCIES =  rpmb.o $(top_builddir)/build/librpmbuild.la \
300$(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
301$(top_builddir)/rpmio/librpmio.la $(top_builddir)/popt/libpopt.la
302rpmd_OBJECTS =
303rpmd_DEPENDENCIES =  rpmd.o $(top_builddir)/build/librpmbuild.la \
304$(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
305$(top_builddir)/rpmio/librpmio.la $(top_builddir)/popt/libpopt.la
306rpmi_OBJECTS =
307rpmi_DEPENDENCIES =  rpmi.o $(top_builddir)/build/librpmbuild.la \
308$(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
309$(top_builddir)/rpmio/librpmio.la $(top_builddir)/popt/libpopt.la
310rpmk_OBJECTS =
311rpmk_DEPENDENCIES =  rpmk.o $(top_builddir)/build/librpmbuild.la \
312$(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
313$(top_builddir)/rpmio/librpmio.la $(top_builddir)/popt/libpopt.la
314rpmq_OBJECTS =
315rpmq_DEPENDENCIES =  rpmq.o $(top_builddir)/build/librpmbuild.la \
316$(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
317$(top_builddir)/rpmio/librpmio.la $(top_builddir)/popt/libpopt.la
318rpm_OBJECTS =
319rpm_DEPENDENCIES =  rpm.o $(top_builddir)/build/librpmbuild.la \
320$(top_builddir)/lib/librpm.la $(top_builddir)/rpmdb/librpmdb.la \
321$(top_builddir)/rpmio/librpmio.la $(top_builddir)/popt/libpopt.la
322SCRIPTS =  $(bin_SCRIPTS) $(pkglib_SCRIPTS)
323
324CFLAGS = @CFLAGS@
325COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
326LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
327CCLD = $(CC)
328LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
329DATA =  $(pkglib_DATA)
330
331HEADERS =  $(noinst_HEADERS)
332
333DIST_COMMON =  README ./stamp-h.in ABOUT-NLS COPYING Doxyfile.in INSTALL \
334Makefile.am Makefile.in TODO acconfig.h aclocal.m4 config.guess \
335config.h.in config.sub configure configure.in install-sh ltconfig \
336ltmain.sh macros.in missing mkinstalldirs platform.in rpm.spec.in \
337rpmpopt.in rpmrc.in
338
339
340DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
341
342TAR = gtar
343GZIP_ENV = --best
344SOURCES = $(rpm2cpio_SOURCES) $(rpmb_SOURCES) $(rpmd_SOURCES) $(rpmi_SOURCES) $(rpmk_SOURCES) $(rpmq_SOURCES) $(rpm_SOURCES)
345OBJECTS = $(rpm2cpio_OBJECTS) $(rpmb_OBJECTS) $(rpmd_OBJECTS) $(rpmi_OBJECTS) $(rpmk_OBJECTS) $(rpmq_OBJECTS) $(rpm_OBJECTS)
346
347all: all-redirect
348.SUFFIXES:
349.SUFFIXES: .S .c .lo .o .obj .s
350$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
351        cd $(top_srcdir) && $(AUTOMAKE) --foreign --include-deps Makefile
352
353Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
354        cd $(top_builddir) \
355          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
356
357$(ACLOCAL_M4):  configure.in
358        cd $(srcdir) && $(ACLOCAL)
359
360config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
361        $(SHELL) ./config.status --recheck
362$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
363        cd $(srcdir) && $(AUTOCONF)
364
365config.h: stamp-h
366        @if test ! -f $@; then \
367                rm -f stamp-h; \
368                $(MAKE) stamp-h; \
369        else :; fi
370stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
371        cd $(top_builddir) \
372          && CONFIG_FILES= CONFIG_HEADERS=config.h \
373             $(SHELL) ./config.status
374        @echo timestamp > stamp-h 2> /dev/null
375$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
376        @if test ! -f $@; then \
377                rm -f $(srcdir)/stamp-h.in; \
378                $(MAKE) $(srcdir)/stamp-h.in; \
379        else :; fi
380$(srcdir)/stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) acconfig.h
381        cd $(top_srcdir) && $(AUTOHEADER)
382        @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null
383
384mostlyclean-hdr:
385
386clean-hdr:
387
388distclean-hdr:
389        -rm -f config.h
390
391maintainer-clean-hdr:
392Doxyfile: $(top_builddir)/config.status Doxyfile.in
393        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
394rpmrc: $(top_builddir)/config.status rpmrc.in
395        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
396macros: $(top_builddir)/config.status macros.in
397        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
398platform: $(top_builddir)/config.status platform.in
399        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
400rpmpopt: $(top_builddir)/config.status rpmpopt.in
401        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
402rpm.spec: $(top_builddir)/config.status rpm.spec.in
403        cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
404
405mostlyclean-binPROGRAMS:
406
407clean-binPROGRAMS:
408        -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
409
410distclean-binPROGRAMS:
411
412maintainer-clean-binPROGRAMS:
413
414install-binPROGRAMS: $(bin_PROGRAMS)
415        @$(NORMAL_INSTALL)
416        $(mkinstalldirs) $(DESTDIR)$(bindir)
417        @list='$(bin_PROGRAMS)'; for p in $$list; do \
418          if test -f $$p; then \
419            echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
420            $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
421          else :; fi; \
422        done
423
424uninstall-binPROGRAMS:
425        @$(NORMAL_UNINSTALL)
426        list='$(bin_PROGRAMS)'; for p in $$list; do \
427          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
428        done
429
430mostlyclean-pkglibPROGRAMS:
431
432clean-pkglibPROGRAMS:
433        -test -z "$(pkglib_PROGRAMS)" || rm -f $(pkglib_PROGRAMS)
434
435distclean-pkglibPROGRAMS:
436
437maintainer-clean-pkglibPROGRAMS:
438
439install-pkglibPROGRAMS: $(pkglib_PROGRAMS)
440        @$(NORMAL_INSTALL)
441        $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
442        @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
443          if test -f $$p; then \
444            echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
445            $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
446          else :; fi; \
447        done
448
449uninstall-pkglibPROGRAMS:
450        @$(NORMAL_UNINSTALL)
451        list='$(pkglib_PROGRAMS)'; for p in $$list; do \
452          rm -f $(DESTDIR)$(pkglibdir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
453        done
454
455mostlyclean-rpmbinPROGRAMS:
456
457clean-rpmbinPROGRAMS:
458        -test -z "$(rpmbin_PROGRAMS)" || rm -f $(rpmbin_PROGRAMS)
459
460distclean-rpmbinPROGRAMS:
461
462maintainer-clean-rpmbinPROGRAMS:
463
464install-rpmbinPROGRAMS: $(rpmbin_PROGRAMS)
465        @$(NORMAL_INSTALL)
466        $(mkinstalldirs) $(DESTDIR)$(rpmbindir)
467        @list='$(rpmbin_PROGRAMS)'; for p in $$list; do \
468          if test -f $$p; then \
469            echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(rpmbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
470            $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(rpmbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
471          else :; fi; \
472        done
473
474uninstall-rpmbinPROGRAMS:
475        @$(NORMAL_UNINSTALL)
476        list='$(rpmbin_PROGRAMS)'; for p in $$list; do \
477          rm -f $(DESTDIR)$(rpmbindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
478        done
479
480.c.o:
481        $(COMPILE) -c $<
482
483# FIXME: We should only use cygpath when building on Windows,
484# and only if it is available.
485.c.obj:
486        $(COMPILE) -c `cygpath -w $<`
487
488.s.o:
489        $(COMPILE) -c $<
490
491.S.o:
492        $(COMPILE) -c $<
493
494mostlyclean-compile:
495        -rm -f *.o core *.core
496        -rm -f *.$(OBJEXT)
497
498clean-compile:
499
500distclean-compile:
501        -rm -f *.tab.c
502
503maintainer-clean-compile:
504
505.c.lo:
506        $(LIBTOOL) --mode=compile $(COMPILE) -c $<
507
508.s.lo:
509        $(LIBTOOL) --mode=compile $(COMPILE) -c $<
510
511.S.lo:
512        $(LIBTOOL) --mode=compile $(COMPILE) -c $<
513
514mostlyclean-libtool:
515        -rm -f *.lo
516
517clean-libtool:
518        -rm -rf .libs _libs
519
520distclean-libtool:
521
522maintainer-clean-libtool:
523
524rpm2cpio$(EXEEXT): $(rpm2cpio_OBJECTS) $(rpm2cpio_DEPENDENCIES)
525        @rm -f rpm2cpio$(EXEEXT)
526        $(LINK) $(rpm2cpio_LDFLAGS) $(rpm2cpio_OBJECTS) $(rpm2cpio_LDADD) $(LIBS)
527
528rpmb$(EXEEXT): $(rpmb_OBJECTS) $(rpmb_DEPENDENCIES)
529        @rm -f rpmb$(EXEEXT)
530        $(LINK) $(rpmb_LDFLAGS) $(rpmb_OBJECTS) $(rpmb_LDADD) $(LIBS)
531
532rpmd$(EXEEXT): $(rpmd_OBJECTS) $(rpmd_DEPENDENCIES)
533        @rm -f rpmd$(EXEEXT)
534        $(LINK) $(rpmd_LDFLAGS) $(rpmd_OBJECTS) $(rpmd_LDADD) $(LIBS)
535
536rpmi$(EXEEXT): $(rpmi_OBJECTS) $(rpmi_DEPENDENCIES)
537        @rm -f rpmi$(EXEEXT)
538        $(LINK) $(rpmi_LDFLAGS) $(rpmi_OBJECTS) $(rpmi_LDADD) $(LIBS)
539
540rpmk$(EXEEXT): $(rpmk_OBJECTS) $(rpmk_DEPENDENCIES)
541        @rm -f rpmk$(EXEEXT)
542        $(LINK) $(rpmk_LDFLAGS) $(rpmk_OBJECTS) $(rpmk_LDADD) $(LIBS)
543
544rpmq$(EXEEXT): $(rpmq_OBJECTS) $(rpmq_DEPENDENCIES)
545        @rm -f rpmq$(EXEEXT)
546        $(LINK) $(rpmq_LDFLAGS) $(rpmq_OBJECTS) $(rpmq_LDADD) $(LIBS)
547
548rpm$(EXEEXT): $(rpm_OBJECTS) $(rpm_DEPENDENCIES)
549        @rm -f rpm$(EXEEXT)
550        $(LINK) $(rpm_LDFLAGS) $(rpm_OBJECTS) $(rpm_LDADD) $(LIBS)
551
552install-binSCRIPTS: $(bin_SCRIPTS)
553        @$(NORMAL_INSTALL)
554        $(mkinstalldirs) $(DESTDIR)$(bindir)
555        @list='$(bin_SCRIPTS)'; for p in $$list; do \
556          if test -f $$p; then \
557            echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
558            $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
559          else if test -f $(srcdir)/$$p; then \
560            echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`"; \
561            $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
562          else :; fi; fi; \
563        done
564
565uninstall-binSCRIPTS:
566        @$(NORMAL_UNINSTALL)
567        list='$(bin_SCRIPTS)'; for p in $$list; do \
568          rm -f $(DESTDIR)$(bindir)/`echo $$p|sed '$(transform)'`; \
569        done
570
571install-pkglibSCRIPTS: $(pkglib_SCRIPTS)
572        @$(NORMAL_INSTALL)
573        $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
574        @list='$(pkglib_SCRIPTS)'; for p in $$list; do \
575          if test -f $$p; then \
576            echo " $(INSTALL_SCRIPT) $$p $(DESTDIR)$(pkglibdir)/`echo $$p|sed '$(transform)'`"; \
577            $(INSTALL_SCRIPT) $$p $(DESTDIR)$(pkglibdir)/`echo $$p|sed '$(transform)'`; \
578          else if test -f $(srcdir)/$$p; then \
579            echo " $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/`echo $$p|sed '$(transform)'`"; \
580            $(INSTALL_SCRIPT) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/`echo $$p|sed '$(transform)'`; \
581          else :; fi; fi; \
582        done
583
584uninstall-pkglibSCRIPTS:
585        @$(NORMAL_UNINSTALL)
586        list='$(pkglib_SCRIPTS)'; for p in $$list; do \
587          rm -f $(DESTDIR)$(pkglibdir)/`echo $$p|sed '$(transform)'`; \
588        done
589
590install-pkglibDATA: $(pkglib_DATA)
591        @$(NORMAL_INSTALL)
592        $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
593        @list='$(pkglib_DATA)'; for p in $$list; do \
594          if test -f $(srcdir)/$$p; then \
595            echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$p"; \
596            $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$p; \
597          else if test -f $$p; then \
598            echo " $(INSTALL_DATA) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
599            $(INSTALL_DATA) $$p $(DESTDIR)$(pkglibdir)/$$p; \
600          fi; fi; \
601        done
602
603uninstall-pkglibDATA:
604        @$(NORMAL_UNINSTALL)
605        list='$(pkglib_DATA)'; for p in $$list; do \
606          rm -f $(DESTDIR)$(pkglibdir)/$$p; \
607        done
608
609# This directory's subdirectories are mostly independent; you can cd
610# into them and run `make' without going through this Makefile.
611# To change the values of `make' variables: instead of editing Makefiles,
612# (1) if the variable is set in `config.status', edit `config.status'
613#     (which will cause the Makefiles to be regenerated when you run `make');
614# (2) otherwise, pass the desired values on the `make' command line.
615
616@SET_MAKE@
617
618all-recursive install-data-recursive install-exec-recursive \
619installdirs-recursive install-recursive uninstall-recursive  \
620check-recursive installcheck-recursive info-recursive dvi-recursive:
621        @set fnord $(MAKEFLAGS); amf=$$2; \
622        dot_seen=no; \
623        target=`echo $@ | sed s/-recursive//`; \
624        list='$(SUBDIRS)'; for subdir in $$list; do \
625          echo "Making $$target in $$subdir"; \
626          if test "$$subdir" = "."; then \
627            dot_seen=yes; \
628            local_target="$$target-am"; \
629          else \
630            local_target="$$target"; \
631          fi; \
632          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
633           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
634        done; \
635        if test "$$dot_seen" = "no"; then \
636          $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
637        fi; test -z "$$fail"
638
639mostlyclean-recursive clean-recursive distclean-recursive \
640maintainer-clean-recursive:
641        @set fnord $(MAKEFLAGS); amf=$$2; \
642        dot_seen=no; \
643        rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
644          rev="$$subdir $$rev"; \
645          test "$$subdir" != "." || dot_seen=yes; \
646        done; \
647        test "$$dot_seen" = "no" && rev=". $$rev"; \
648        target=`echo $@ | sed s/-recursive//`; \
649        for subdir in $$rev; do \
650          echo "Making $$target in $$subdir"; \
651          if test "$$subdir" = "."; then \
652            local_target="$$target-am"; \
653          else \
654            local_target="$$target"; \
655          fi; \
656          (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
657           || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
658        done && test -z "$$fail"
659tags-recursive:
660        list='$(SUBDIRS)'; for subdir in $$list; do \
661          test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
662        done
663
664tags: TAGS
665
666ID: $(HEADERS) $(SOURCES) $(LISP)
667        list='$(SOURCES) $(HEADERS)'; \
668        unique=`for i in $$list; do echo $$i; done | \
669          awk '    { files[$$0] = 1; } \
670               END { for (i in files) print i; }'`; \
671        here=`pwd` && cd $(srcdir) \
672          && mkid -f$$here/ID $$unique $(LISP)
673
674TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP)
675        tags=; \
676        here=`pwd`; \
677        list='$(SUBDIRS)'; for subdir in $$list; do \
678   if test "$$subdir" = .; then :; else \
679            test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
680   fi; \
681        done; \
682        list='$(SOURCES) $(HEADERS)'; \
683        unique=`for i in $$list; do echo $$i; done | \
684          awk '    { files[$$0] = 1; } \
685               END { for (i in files) print i; }'`; \
686        test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
687          || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) -o $$here/TAGS)
688
689mostlyclean-tags:
690
691clean-tags:
692
693distclean-tags:
694        -rm -f TAGS ID
695
696maintainer-clean-tags:
697
698distdir = $(PACKAGE)-$(VERSION)
699top_distdir = $(distdir)
700
701# This target untars the dist file and tries a VPATH configuration.  Then
702# it guarantees that the distribution is self-contained by making another
703# tarfile.
704distcheck: dist
705        -rm -rf $(distdir)
706        GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
707        mkdir $(distdir)/=build
708        mkdir $(distdir)/=inst
709        dc_install_base=`cd $(distdir)/=inst && pwd`; \
710        cd $(distdir)/=build \
711          && ../configure --with-included-gettext --srcdir=.. --prefix=$$dc_install_base \
712          && $(MAKE) $(AM_MAKEFLAGS) \
713          && $(MAKE) $(AM_MAKEFLAGS) dvi \
714          && $(MAKE) $(AM_MAKEFLAGS) check \
715          && $(MAKE) $(AM_MAKEFLAGS) install \
716          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
717          && $(MAKE) $(AM_MAKEFLAGS) dist
718        -rm -rf $(distdir)
719        @banner="$(distdir).tar.gz is ready for distribution"; \
720        dashes=`echo "$$banner" | sed s/./=/g`; \
721        echo "$$dashes"; \
722        echo "$$banner"; \
723        echo "$$dashes"
724dist: distdir
725        -chmod -R a+r $(distdir)
726        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
727        -rm -rf $(distdir)
728dist-all: distdir
729        -chmod -R a+r $(distdir)
730        GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
731        -rm -rf $(distdir)
732distdir: $(DISTFILES)
733        -rm -rf $(distdir)
734        mkdir $(distdir)
735        -chmod 777 $(distdir)
736        $(mkinstalldirs) $(distdir)/autodeps $(distdir)/db3 $(distdir)/po
737        @for file in $(DISTFILES); do \
738          d=$(srcdir); \
739          if test -d $$d/$$file; then \
740            cp -pr $$d/$$file $(distdir)/$$file; \
741          else \
742            test -f $(distdir)/$$file \
743            || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
744            || cp -p $$d/$$file $(distdir)/$$file || :; \
745          fi; \
746        done
747        for subdir in $(SUBDIRS); do \
748          if test "$$subdir" = .; then :; else \
749            test -d $(distdir)/$$subdir \
750            || mkdir $(distdir)/$$subdir \
751            || exit 1; \
752            chmod 777 $(distdir)/$$subdir; \
753            (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
754              || exit 1; \
755          fi; \
756        done
757
758info-am:
759info: info-recursive
760dvi-am:
761dvi: dvi-recursive
762check-am: all-am
763check: check-recursive
764installcheck-am:
765installcheck: installcheck-recursive
766all-recursive-am: config.h
767        $(MAKE) $(AM_MAKEFLAGS) all-recursive
768
769install-exec-am: install-binPROGRAMS install-pkglibPROGRAMS \
770                install-binSCRIPTS install-pkglibSCRIPTS \
771                install-pkglibDATA
772install-exec: install-exec-recursive
773
774install-data-am: install-rpmbinPROGRAMS install-data-local
775install-data: install-data-recursive
776
777install-am: all-am
778        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
779install: install-recursive
780uninstall-am: uninstall-binPROGRAMS uninstall-pkglibPROGRAMS \
781                uninstall-rpmbinPROGRAMS uninstall-binSCRIPTS \
782                uninstall-pkglibSCRIPTS uninstall-pkglibDATA
783uninstall: uninstall-recursive
784all-am: Makefile $(PROGRAMS) $(SCRIPTS) $(DATA) $(HEADERS) config.h
785all-redirect: all-recursive-am
786install-strip:
787        $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
788installdirs: installdirs-recursive
789installdirs-am:
790        $(mkinstalldirs)  $(DESTDIR)$(bindir) $(DESTDIR)$(pkglibdir) \
791                $(DESTDIR)$(rpmbindir) $(DESTDIR)$(bindir) \
792                $(DESTDIR)$(pkglibdir) $(DESTDIR)$(pkglibdir)
793
794
795mostlyclean-generic:
796
797clean-generic:
798
799distclean-generic:
800        -rm -f Makefile $(CONFIG_CLEAN_FILES)
801        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
802
803maintainer-clean-generic:
804mostlyclean-am:  mostlyclean-hdr mostlyclean-binPROGRAMS \
805                mostlyclean-pkglibPROGRAMS mostlyclean-rpmbinPROGRAMS \
806                mostlyclean-compile mostlyclean-libtool \
807                mostlyclean-tags mostlyclean-generic
808
809mostlyclean: mostlyclean-recursive
810
811clean-am:  clean-hdr clean-binPROGRAMS clean-pkglibPROGRAMS \
812                clean-rpmbinPROGRAMS clean-compile clean-libtool \
813                clean-tags clean-generic mostlyclean-am
814
815clean: clean-recursive
816
817distclean-am:  distclean-hdr distclean-binPROGRAMS \
818                distclean-pkglibPROGRAMS distclean-rpmbinPROGRAMS \
819                distclean-compile distclean-libtool distclean-tags \
820                distclean-generic clean-am
821        -rm -f libtool
822
823distclean: distclean-recursive
824        -rm -f config.status
825
826maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-binPROGRAMS \
827                maintainer-clean-pkglibPROGRAMS \
828                maintainer-clean-rpmbinPROGRAMS \
829                maintainer-clean-compile maintainer-clean-libtool \
830                maintainer-clean-tags maintainer-clean-generic \
831                distclean-am
832        @echo "This command is intended for maintainers to use;"
833        @echo "it deletes files that may require special tools to rebuild."
834
835maintainer-clean: maintainer-clean-recursive
836        -rm -f config.status
837
838.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
839mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
840maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
841mostlyclean-pkglibPROGRAMS distclean-pkglibPROGRAMS \
842clean-pkglibPROGRAMS maintainer-clean-pkglibPROGRAMS \
843uninstall-pkglibPROGRAMS install-pkglibPROGRAMS \
844mostlyclean-rpmbinPROGRAMS distclean-rpmbinPROGRAMS \
845clean-rpmbinPROGRAMS maintainer-clean-rpmbinPROGRAMS \
846uninstall-rpmbinPROGRAMS install-rpmbinPROGRAMS mostlyclean-compile \
847distclean-compile clean-compile maintainer-clean-compile \
848mostlyclean-libtool distclean-libtool clean-libtool \
849maintainer-clean-libtool uninstall-binSCRIPTS install-binSCRIPTS \
850uninstall-pkglibSCRIPTS install-pkglibSCRIPTS uninstall-pkglibDATA \
851install-pkglibDATA install-data-recursive uninstall-data-recursive \
852install-exec-recursive uninstall-exec-recursive installdirs-recursive \
853uninstalldirs-recursive all-recursive check-recursive \
854installcheck-recursive info-recursive dvi-recursive \
855mostlyclean-recursive distclean-recursive clean-recursive \
856maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
857distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
858dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
859install-exec-am install-exec install-data-local install-data-am \
860install-data install-am install uninstall-am uninstall all-redirect \
861all-am all installdirs-am installdirs mostlyclean-generic \
862distclean-generic clean-generic maintainer-clean-generic clean \
863mostlyclean distclean maintainer-clean
864
865
866rpmpopt-$(VERSION): rpmpopt
867        cp rpmpopt $@
868rpm.o:  rpmqv.c
869        $(COMPILE) -DIAM_RPMDB -DIAM_RPMEIU -DIAM_RPMK -DIAM_RPMQV -o $@ -c rpmqv.c
870rpmb.o: rpmqv.c
871        $(COMPILE) -DIAM_RPMBT -o $@ -c rpmqv.c
872rpmd.o: rpmqv.c
873        $(COMPILE) -DIAM_RPMDB -o $@ -c rpmqv.c
874rpmi.o: rpmqv.c
875        $(COMPILE) -DIAM_RPMEIU -o $@ -c rpmqv.c
876rpmk.o: rpmqv.c
877        $(COMPILE) -DIAM_RPMK -o $@ -c rpmqv.c
878rpmq.o: rpmqv.c
879        $(COMPILE) -DIAM_RPMQV -o $@ -c rpmqv.c
880
881$(PROGRAMS):            $(myLDADD) @WITH_APIDOCS_TARGET@
882
883.PHONY: lclint
884lclint:
885        lclint $(DEFS) $(INCLUDES) rpmqv.c $(rpmb_SOURCES) \
886                `make -s sources -C build` \
887                `make -s sources -C lib` \
888                `make -s sources -C rpmdb` \
889                `make -s sources -C rpmio` \
890                `make -s sources -C beecrypt` \
891                `make -s sources -C popt`
892
893install-data-local:
894        @$(mkinstalldirs) $(DESTDIR)$(varprefix)/lib/rpm
895        @rm -f $(DESTDIR)$(libdir)/rpmrc
896        @@LN_S@ rpm/rpmrc $(DESTDIR)$(libdir)/rpmrc
897        @rm -f $(DESTDIR)$(libdir)/rpmpopt
898        @@LN_S@ rpm/rpmpopt $(DESTDIR)$(libdir)/rpmpopt
899        @rm -f $(DESTDIR)$(libdir)/rpm/rpmt
900        @@LN_S@ rpmb $(DESTDIR)$(libdir)/rpm/rpmt
901        @rm -f $(DESTDIR)$(libdir)/rpm/rpme
902        @@LN_S@ rpmi $(DESTDIR)$(libdir)/rpm/rpme
903        @rm -f $(DESTDIR)$(libdir)/rpm/rpmu
904        @@LN_S@ rpmi $(DESTDIR)$(libdir)/rpm/rpmu
905        @rm -f $(DESTDIR)$(libdir)/rpm/rpmv
906        @@LN_S@ rpmq $(DESTDIR)$(libdir)/rpm/rpmv
907        rm -f $(DESTDIR)$(bindir)/rpmbuild
908        @LN_S@ ../lib/rpm/rpmb $(DESTDIR)$(bindir)/rpmbuild
909        rm -f $(DESTDIR)$(bindir)/rpmquery
910        @LN_S@ ../lib/rpm/rpmq $(DESTDIR)$(bindir)/rpmquery
911        rm -f $(DESTDIR)$(bindir)/rpmverify
912        @LN_S@ ../lib/rpm/rpmv $(DESTDIR)$(bindir)/rpmverify
913        rm -f $(DESTDIR)$(bindir)/rpmsign
914        @LN_S@ ../lib/rpm/rpmk $(DESTDIR)$(bindir)/rpmsign
915        rm -f $(DESTDIR)$(bindir)/rpmdb ; \
916        @LN_S@ ../lib/rpm/rpmd $(DESTDIR)$(bindir)/rpmdb ; \
917        for bf in e i u ; do \
918            rm -f $(DESTDIR)$(bindir)/rpm$$bf ; \
919            @LN_S@ ../lib/rpm/rpm$$bf $(DESTDIR)$(bindir)/rpm$$bf ; \
920        done
921        @for dir in BUILD RPMS SOURCES SPECS SRPMS ; do\
922            $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/$$dir;\
923        done
924        @case "@host_cpu@" in \
925        *86)    $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/i386 ;\
926                $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/i486 ;\
927                $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/i586 ;\
928                $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/i686 ;\
929                $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/athlon ;;\
930        alpha*) $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/alpha ;\
931                $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/alphaev6 ;;\
932        sparc*) $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/sparc ;\
933                $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/sparcv9 ;\
934                $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/sparc64 ;;\
935        ia64*)  $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/ia64 ;;\
936        s390*)  $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/s390 ;;\
937        mipsel*) $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/mipsel ;;\
938        mips*)  $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/mips ;;\
939        powerpc*) $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/ppc ;\
940                $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/ppc64 ;;\
941        *)      $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/@host_cpu@ ;;\
942        esac
943        $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/noarch
944        @case "@host_os@" in \
945        mint) $(mkinstalldirs) $(DESTDIR)$(pkgsrcdir)/RPMS/m68kmint ;;\
946        solaris*|linux*) \
947           chmod u+x ./installplatform; DESTDIR="$(DESTDIR)" pkglibdir="$(pkglibdir)" ./installplatform rpmrc macros platform ;; \
948        esac
949        @$(mkinstalldirs) $(DESTDIR)/var/tmp
950
951.PHONY: setperms
952setperms:
953        @for f in $(rpmbin_PROGRAMS) ; do\
954            $(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(rpmbindir)/$$f ;\
955            $(__CHMOD) g+s $(DESTDIR)$(rpmbindir)/$$f ;\
956        done
957        @for f in $(bin_PROGRAMS) ; do\
958            $(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(bindir)/$$f ;\
959        done
960        @for f in $(pkglib_PROGRAMS) ; do\
961            $(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(pkglibdir)/$$f ;\
962            $(__CHMOD) g+s $(DESTDIR)$(pkglibdir)/$$f ;\
963        done
964        @for f in $(pkglib_SCRIPTS) ; do\
965            $(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(pkglibdir)/$$f ;\
966        done
967        @$(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(pkglibdir)
968        @$(__CHOWN) -R ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(varprefix)/lib/rpm
969        -@$(__CHMOD) 0664 $(DESTDIR)$(varprefix)/lib/rpm/[A-Z]*
970        -@$(__CHMOD) 0775 $(DESTDIR)$(varprefix)/lib/rpm
971        -@$(__CHMOD) 0664 $(DESTDIR)$(varprefix)/lib/rpm/__db.*
972
973.PHONY: unsetgid
974unsetgid:
975        @for f in $(rpmbin_PROGRAMS) ; do\
976            $(__CHMOD) g-s $(DESTDIR)$(rpmbindir)/$$f ;\
977        done
978        @for f in $(pkglib_PROGRAMS) ; do\
979            $(__CHMOD) g-s $(DESTDIR)$(pkglibdir)/$$f ;\
980        done
981
982.PHONY: tar
983tar:
984        rm -rf /tmp/rpm-$(VERSION)
985        $(MAKE) DESTDIR=/tmp/rpm-$(VERSION) install
986        cd /tmp/rpm-$(VERSION) ; tar cvf /tmp/rpm-$(VERSION).tar .
987
988.PHONY: noconfig
989noconfig:
990        find . -name "Makefile" -exec rm {} \;
991        rm -f *gz *rpm config.*
992
993.PHONY: archive
994archive:
995        @cvs -d `cat CVS/Root` diff 2>&1 > /dev/null || { \
996            echo " " ; \
997            echo "==> Please resolve differences between the repository and" ; \
998            echo "==> your rpm check out before tagging." ; \
999            echo " " ; \
1000            cvs -n up ; \
1001            echo " " ; \
1002            exit 1 ; \
1003        }
1004        @cvs -d `cat CVS/Root` -Q tag -F $(CVSTAG) .
1005        @make dist
1006        @echo " "
1007        @echo "The final archive is ./rpm-$(VERSION).tar.gz."
1008
1009.PHONY: nextsrpm
1010nextsrpm: all archive
1011        @sudo ./rpm -ta rpm-$(VERSION).tar.gz
1012
1013.PHONY: doxygen
1014doxygen @WITH_APIDOCS_TARGET@: Doxyfile
1015        rm -rf $@
1016        mkdir -p $@
1017        - [ X"@__DOXYGEN@" != Xno ] && @__DOXYGEN@
1018
1019ctags:
1020        find . -type f -name "*.[ch]*" | xargs @CTAGS@
1021
1022cscope:
1023        @CSCOPE@ -b -R
1024
1025cref: ctags cscope
1026
1027# Tell versions [3.59,3.63) of GNU make to not export all variables.
1028# Otherwise a system limit (for SysV at least) may be exceeded.
1029.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.