1998-10-08 18:40:27 +08:00
|
|
|
# Top level Makefile for rpm
|
|
|
|
|
2007-10-17 00:22:23 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
|
|
|
|
2007-09-05 16:41:55 +08:00
|
|
|
include $(top_srcdir)/rpm.am
|
|
|
|
|
2007-08-28 19:19:37 +08:00
|
|
|
CLEANFILES =
|
2007-07-16 21:20:51 +08:00
|
|
|
EXTRA_DIST = CHANGES ChangeLog CREDITS Doxyheader GROUPS INSTALL \
|
2007-07-24 19:59:58 +08:00
|
|
|
autodeps autogen.sh \
|
2007-08-27 22:11:11 +08:00
|
|
|
db db3/configure installplatform platform*
|
1999-01-22 02:42:53 +08:00
|
|
|
|
2007-09-18 10:23:21 +08:00
|
|
|
SUBDIRS = po misc
|
|
|
|
if WITH_INTERNAL_DB
|
|
|
|
SUBDIRS += db3
|
|
|
|
endif
|
|
|
|
SUBDIRS += lua rpmio rpmdb lib build python scripts doc . tests
|
|
|
|
|
|
|
|
DIST_SUBDIRS = po misc db3 lua rpmio rpmdb lib build python scripts doc tests
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2007-07-25 20:36:58 +08:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
|
2007-10-17 22:41:59 +08:00
|
|
|
AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir)
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/build
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/lib
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/rpmdb
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/rpmio
|
|
|
|
AM_CPPFLAGS += @WITH_BEECRYPT_INCLUDE@
|
|
|
|
AM_CPPFLAGS += @WITH_POPT_INCLUDE@
|
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/misc
|
|
|
|
AM_CPPFLAGS += @WITH_LIBELF_INCLUDE@
|
2007-08-28 12:46:20 +08:00
|
|
|
AM_CPPFLAGS += -DLOCALEDIR="\"$(localedir)\""
|
2007-08-31 20:38:41 +08:00
|
|
|
AM_CPPFLAGS += -DRPMCONFIGDIR="\"@RPMCONFIGDIR@\""
|
2007-09-01 00:54:57 +08:00
|
|
|
AM_CPPFLAGS += -DLIBRPMALIAS_FILENAME="\"@RPMCONFIGDIR@/rpmpopt-${VERSION}\""
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2002-12-20 07:41:52 +08:00
|
|
|
staticLDFLAGS = @LDFLAGS_STATIC@ @LDFLAGS_NPTL@
|
2000-02-26 00:49:05 +08:00
|
|
|
|
2007-10-10 16:08:26 +08:00
|
|
|
pkginclude_HEADERS =
|
|
|
|
|
|
|
|
pkginclude_HEADERS += rpmio/argv.h
|
|
|
|
pkginclude_HEADERS += rpmio/rpmio.h
|
|
|
|
pkginclude_HEADERS += rpmio/rpmurl.h
|
|
|
|
pkginclude_HEADERS += rpmio/rpmmacro.h
|
|
|
|
pkginclude_HEADERS += rpmio/rpmlog.h
|
|
|
|
pkginclude_HEADERS += rpmio/rpmmessages.h
|
|
|
|
pkginclude_HEADERS += rpmio/rpmpgp.h
|
|
|
|
pkginclude_HEADERS += rpmio/rpmsq.h
|
|
|
|
pkginclude_HEADERS += rpmio/rpmsw.h
|
|
|
|
|
|
|
|
pkginclude_HEADERS += rpmdb/header.h
|
|
|
|
pkginclude_HEADERS += rpmdb/rpmdb.h
|
|
|
|
|
|
|
|
pkginclude_HEADERS += lib/idtx.h
|
|
|
|
pkginclude_HEADERS += lib/rpmcli.h
|
|
|
|
pkginclude_HEADERS += lib/rpmlib.h
|
|
|
|
pkginclude_HEADERS += lib/rpmal.h
|
|
|
|
pkginclude_HEADERS += lib/rpmds.h
|
|
|
|
pkginclude_HEADERS += lib/rpmfi.h
|
|
|
|
pkginclude_HEADERS += lib/rpmgi.h
|
|
|
|
pkginclude_HEADERS += lib/rpmps.h
|
|
|
|
pkginclude_HEADERS += lib/rpmte.h
|
|
|
|
pkginclude_HEADERS += lib/rpmts.h
|
|
|
|
pkginclude_HEADERS += lib/stringbuf.h
|
|
|
|
|
|
|
|
pkginclude_HEADERS += build/rpmbuild.h
|
|
|
|
pkginclude_HEADERS += build/rpmfc.h
|
|
|
|
pkginclude_HEADERS += build/rpmspec.h
|
|
|
|
|
|
|
|
|
2007-10-17 00:21:27 +08:00
|
|
|
rpmbindir = `echo $(bindir) | $(SED) -e s,usr/bin,bin,`
|
1998-10-08 18:40:27 +08:00
|
|
|
rpmbin_PROGRAMS = rpm
|
|
|
|
|
|
|
|
bin_PROGRAMS = rpm2cpio
|
1999-04-04 01:13:35 +08:00
|
|
|
|
2007-09-05 16:45:46 +08:00
|
|
|
rpmlibexec_PROGRAMS = rpmb rpmd rpmi rpmk rpmq
|
2007-09-05 21:24:24 +08:00
|
|
|
rpmconfig_SCRIPTS = find-provides find-requires mkinstalldirs \
|
2007-08-27 22:15:29 +08:00
|
|
|
config.guess config.sub
|
2007-10-17 21:38:33 +08:00
|
|
|
DISTCLEANFILES = find-provides
|
|
|
|
DISTCLEANFILES += find-requires
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2007-08-08 22:54:26 +08:00
|
|
|
rpm_SOURCES = rpmqv.c debug.h system.h
|
|
|
|
rpm_CPPFLAGS = $(AM_CPPFLAGS) -DIAM_RPMDB -DIAM_RPMEIU -DIAM_RPMK -DIAM_RPMQV
|
2007-09-11 08:46:51 +08:00
|
|
|
rpm_LDADD = build/librpmbuild.la lib/librpm.la rpmdb/librpmdb.la rpmio/librpmio.la
|
|
|
|
rpm_LDADD += @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
|
2001-09-15 21:49:11 +08:00
|
|
|
|
2007-08-08 22:54:26 +08:00
|
|
|
rpmb_SOURCES = build.c rpmqv.c build.h debug.h system.h
|
|
|
|
rpmb_CPPFLAGS = $(AM_CPPFLAGS) -DIAM_RPMBT
|
2007-09-11 08:46:51 +08:00
|
|
|
rpmb_LDADD = build/librpmbuild.la lib/librpm.la rpmdb/librpmdb.la rpmio/librpmio.la
|
|
|
|
rpmb_LDADD += @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
|
2000-05-25 01:53:35 +08:00
|
|
|
|
2007-08-08 22:54:26 +08:00
|
|
|
rpmd_SOURCES = rpmqv.c debug.h system.h
|
|
|
|
rpmd_CPPFLAGS = $(AM_CPPFLAGS) -DIAM_RPMDB
|
2007-09-11 08:46:51 +08:00
|
|
|
rpmd_LDADD = lib/librpm.la rpmdb/librpmdb.la rpmio/librpmio.la
|
|
|
|
rpmd_LDADD += @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
|
2000-05-25 01:53:35 +08:00
|
|
|
|
2007-08-08 22:54:26 +08:00
|
|
|
rpmi_SOURCES = rpmqv.c debug.h system.h
|
|
|
|
rpmi_CPPFLAGS = $(AM_CPPFLAGS) -DIAM_RPMEIU
|
2007-09-11 08:46:51 +08:00
|
|
|
rpmi_LDADD = lib/librpm.la rpmdb/librpmdb.la rpmio/librpmio.la
|
|
|
|
rpmi_LDADD += @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
|
2000-05-25 01:53:35 +08:00
|
|
|
|
2007-08-08 22:54:26 +08:00
|
|
|
rpmk_SOURCES = rpmqv.c debug.h system.h
|
|
|
|
rpmk_CPPFLAGS = $(AM_CPPFLAGS) -DIAM_RPMK
|
2007-09-11 08:46:51 +08:00
|
|
|
rpmk_LDADD = lib/librpm.la rpmdb/librpmdb.la rpmio/librpmio.la
|
|
|
|
rpmk_LDADD += @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
|
2000-05-25 01:53:35 +08:00
|
|
|
|
2007-08-08 22:54:26 +08:00
|
|
|
rpmq_SOURCES = rpmqv.c debug.h system.h
|
|
|
|
rpmq_CPPFLAGS = $(AM_CPPFLAGS) -DIAM_RPMQV
|
2007-09-11 08:46:51 +08:00
|
|
|
rpmq_LDADD = build/librpmbuild.la lib/librpm.la rpmdb/librpmdb.la rpmio/librpmio.la
|
|
|
|
rpmq_LDADD += @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2007-08-08 22:54:26 +08:00
|
|
|
rpm2cpio_SOURCES = rpm2cpio.c debug.h system.h
|
2007-09-11 08:46:51 +08:00
|
|
|
rpm2cpio_LDADD = lib/librpm.la rpmdb/librpmdb.la rpmio/librpmio.la
|
|
|
|
rpm2cpio_LDADD += @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@ @WITH_POPT_LIB@ @WITH_ZLIB_LIB@
|
2000-05-25 01:53:35 +08:00
|
|
|
|
2007-09-11 15:49:54 +08:00
|
|
|
|
2007-09-11 06:55:05 +08:00
|
|
|
if LIBELF
|
|
|
|
if LIBDWARF
|
|
|
|
rpmconfig_SCRIPTS += scripts/find-debuginfo.sh
|
2007-09-11 15:49:54 +08:00
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += debugedit
|
|
|
|
debugedit_SOURCES = tools/debugedit.c tools/hashtab.c tools/hashtab.h
|
|
|
|
debugedit_LDADD = @WITH_LIBELF_LIB@ @WITH_BEECRYPT_LIB@ @WITH_POPT_LIB@
|
2007-09-11 06:55:05 +08:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2007-09-12 16:56:37 +08:00
|
|
|
rpmlibexec_PROGRAMS += javadeps
|
|
|
|
javadeps_SOURCES = tools/javadeps.c
|
|
|
|
javadeps_LDADD =
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmcache
|
|
|
|
rpmcache_SOURCES = tools/rpmcache.c
|
|
|
|
rpmcache_LDADD = lib/librpm.la
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += rpmdeps
|
|
|
|
rpmdeps_SOURCES = tools/rpmdeps.c
|
|
|
|
rpmdeps_LDADD = build/librpmbuild.la
|
2007-09-11 06:55:05 +08:00
|
|
|
|
2007-09-11 15:46:48 +08:00
|
|
|
bin_PROGRAMS += rpmgraph
|
|
|
|
rpmgraph_SOURCES = tools/rpmgraph.c
|
|
|
|
rpmgraph_LDADD = lib/librpm.la
|
|
|
|
|
2007-09-13 20:49:35 +08:00
|
|
|
dist_bin_SCRIPTS = scripts/gendiff
|
|
|
|
|
2007-09-12 16:56:37 +08:00
|
|
|
check_PROGRAMS = dumpdb
|
|
|
|
dumpdb_SOURCES = tools/dumpdb.c
|
2007-09-12 17:30:39 +08:00
|
|
|
dumpdb_LDADD = lib/librpm.la
|
2007-09-12 16:56:37 +08:00
|
|
|
|
|
|
|
check_PROGRAMS += convertdb1
|
|
|
|
convertdb1_SOURCES = tools/convertdb1.c
|
2007-09-12 17:30:39 +08:00
|
|
|
convertdb1_LDADD = lib/librpm.la
|
2007-09-12 16:56:37 +08:00
|
|
|
|
|
|
|
check_PROGRAMS += rpminject
|
|
|
|
rpminject_SOURCES = tools/rpminject.c
|
|
|
|
rpminject_LDADD = build/librpmbuild.la
|
|
|
|
|
|
|
|
check_PROGRAMS += rpmsort
|
|
|
|
rpmsort_SOURCES = tools/rpmsort.c
|
2007-09-12 17:30:39 +08:00
|
|
|
rpmsort_LDADD = lib/librpm.la
|
2007-09-11 15:46:48 +08:00
|
|
|
|
2007-09-18 12:39:31 +08:00
|
|
|
rpmconfig_DATA = rpmrc
|
2007-08-28 19:19:37 +08:00
|
|
|
rpmrc: $(top_srcdir)/rpmrc.in
|
2007-10-17 00:21:27 +08:00
|
|
|
@$(SED) \
|
2007-08-28 19:19:37 +08:00
|
|
|
-e "s,[@]SYSCONFIGDIR[@],$(sysconfdir)/rpm,g" \
|
|
|
|
< $(top_srcdir)/rpmrc.in > rpmrc.tmp \
|
|
|
|
&& ( cd $(top_builddir) && ./config.status --file=${subdir}/rpmrc:${subdir}/rpmrc.tmp )
|
|
|
|
CLEANFILES += rpmrc.tmp rpmrc
|
|
|
|
EXTRA_DIST += rpmrc.in
|
|
|
|
|
2007-09-18 12:39:31 +08:00
|
|
|
rpmconfig_DATA += macros
|
2007-08-31 11:58:43 +08:00
|
|
|
macros: $(top_srcdir)/macros.in
|
2007-10-17 00:21:27 +08:00
|
|
|
@$(SED) \
|
2007-08-31 11:58:43 +08:00
|
|
|
-e "s,[@]varprefix[@],$(localstatedir),g" \
|
|
|
|
< $(top_srcdir)/macros.in > macros.tmp \
|
|
|
|
&& ( cd $(top_builddir) && ./config.status --file=${subdir}/macros:${subdir}/macros.tmp )
|
|
|
|
CLEANFILES += macros.tmp macros
|
|
|
|
EXTRA_DIST += macros.in
|
|
|
|
|
2007-09-18 12:39:31 +08:00
|
|
|
noinst_DATA = platform
|
2007-09-13 20:51:46 +08:00
|
|
|
platform: $(top_srcdir)/platform.in
|
2007-10-17 00:21:27 +08:00
|
|
|
@$(SED) \
|
2007-09-13 20:51:46 +08:00
|
|
|
-e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir),g" \
|
|
|
|
< $(top_srcdir)/platform.in > platform.tmp \
|
|
|
|
&& ( cd $(top_builddir) && ./config.status --file=${subdir}/platform:${subdir}/platform.tmp )
|
|
|
|
CLEANFILES += platform.tmp platform
|
|
|
|
EXTRA_DIST += platform.in
|
|
|
|
|
2007-09-18 12:39:31 +08:00
|
|
|
pkgconfig_DATA = rpm.pc
|
2007-09-14 11:09:17 +08:00
|
|
|
rpm.pc: $(top_srcdir)/rpm.pc.in
|
2007-10-17 00:21:27 +08:00
|
|
|
@$(SED) \
|
2007-09-14 11:09:17 +08:00
|
|
|
-e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir),g" \
|
|
|
|
< $(top_srcdir)/rpm.pc.in > rpm.pc.tmp \
|
|
|
|
&& ( cd $(top_builddir) && ./config.status --file=${subdir}/rpm.pc:${subdir}/rpm.pc.tmp )
|
|
|
|
CLEANFILES += rpm.pc.tmp rpm.pc
|
|
|
|
EXTRA_DIST += rpm.pc.in
|
|
|
|
|
2007-09-18 12:39:31 +08:00
|
|
|
rpmconfig_DATA += rpmpopt-$(VERSION)
|
2007-09-14 11:21:39 +08:00
|
|
|
rpmpopt-@VERSION@: $(top_srcdir)/rpmpopt.in
|
2007-10-17 00:21:27 +08:00
|
|
|
@$(SED) \
|
2007-09-14 11:21:39 +08:00
|
|
|
-e "s,[@]RPMCONFIGDIR[@],$(rpmconfigdir),g" \
|
|
|
|
< $(top_srcdir)/rpmpopt.in > rpmpopt-@VERSION@.tmp \
|
|
|
|
&& ( cd $(top_builddir) && ./config.status --file=${subdir}/rpmpopt-@VERSION@:${subdir}/rpmpopt-@VERSION@.tmp )
|
|
|
|
CLEANFILES += rpmpopt-@VERSION@.tmp rpmpopt-@VERSION@
|
|
|
|
EXTRA_DIST += rpmpopt.in
|
|
|
|
|
2007-10-15 16:40:52 +08:00
|
|
|
usrsrcdir = $(prefix)/src
|
|
|
|
|
|
|
|
pkgsrcdir = $(usrsrcdir)/packages
|
2007-09-07 08:20:37 +08:00
|
|
|
pkgsrc_RPMSdir = $(pkgsrcdir)/RPMS
|
|
|
|
pkgsrc_RPMS_DATA =
|
|
|
|
pkgsrc_SRPMSdir = $(pkgsrcdir)/SRPMS
|
|
|
|
pkgsrc_SRPMS_DATA =
|
|
|
|
pkgsrc_SPECSdir = $(pkgsrcdir)/SPECS
|
|
|
|
pkgsrc_SPECS_DATA =
|
|
|
|
pkgsrc_SOURCESdir = $(pkgsrcdir)/SOURCES
|
|
|
|
pkgsrc_SOURCES_DATA =
|
|
|
|
pkgsrc_BUILDdir = $(pkgsrcdir)/BUILD
|
|
|
|
pkgsrc_BUILD_DATA =
|
2001-01-18 00:00:36 +08:00
|
|
|
|
2007-08-31 11:58:43 +08:00
|
|
|
rpmvardir = $(localstatedir)/lib/rpm
|
2007-08-20 11:15:13 +08:00
|
|
|
rpmvar_DATA =
|
|
|
|
|
2007-09-06 15:39:01 +08:00
|
|
|
install-exec-hook:
|
2007-09-05 16:45:46 +08:00
|
|
|
@rm -f $(DESTDIR)$(rpmlibexecdir)/rpmt
|
|
|
|
@@LN_S@ rpmb $(DESTDIR)$(rpmlibexecdir)/rpmt
|
|
|
|
@rm -f $(DESTDIR)$(rpmlibexecdir)/rpme
|
|
|
|
@@LN_S@ rpmi $(DESTDIR)$(rpmlibexecdir)/rpme
|
|
|
|
@rm -f $(DESTDIR)$(rpmlibexecdir)/rpmu
|
|
|
|
@@LN_S@ rpmi $(DESTDIR)$(rpmlibexecdir)/rpmu
|
|
|
|
@rm -f $(DESTDIR)$(rpmlibexecdir)/rpmv
|
|
|
|
@@LN_S@ rpmq $(DESTDIR)$(rpmlibexecdir)/rpmv
|
2001-01-18 00:00:36 +08:00
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmbuild
|
|
|
|
@LN_S@ ../lib/rpm/rpmb $(DESTDIR)$(bindir)/rpmbuild
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmquery
|
|
|
|
@LN_S@ ../lib/rpm/rpmq $(DESTDIR)$(bindir)/rpmquery
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmverify
|
|
|
|
@LN_S@ ../lib/rpm/rpmv $(DESTDIR)$(bindir)/rpmverify
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmsign
|
|
|
|
@LN_S@ ../lib/rpm/rpmk $(DESTDIR)$(bindir)/rpmsign
|
2001-05-08 08:03:14 +08:00
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmdb ; \
|
|
|
|
@LN_S@ ../lib/rpm/rpmd $(DESTDIR)$(bindir)/rpmdb ; \
|
|
|
|
for bf in e i u ; do \
|
2001-01-18 00:00:36 +08:00
|
|
|
rm -f $(DESTDIR)$(bindir)/rpm$$bf ; \
|
|
|
|
@LN_S@ ../lib/rpm/rpm$$bf $(DESTDIR)$(bindir)/rpm$$bf ; \
|
2000-05-25 01:53:35 +08:00
|
|
|
done
|
2007-09-06 15:39:01 +08:00
|
|
|
|
|
|
|
install-data-local:
|
2001-08-01 02:13:22 +08:00
|
|
|
@case "@host_cpu@" in \
|
2007-08-06 17:02:54 +08:00
|
|
|
*86) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/i386 ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/i486 ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/i586 ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/i686 ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/athlon ;;\
|
|
|
|
alpha*) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/alpha ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/alphaev6 ;;\
|
|
|
|
arm*) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/armv3l ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/armv4l ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/armv4tl ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/armv5tel ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/armv5tejl ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/armv6l ;;\
|
|
|
|
sparc*) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/sparc ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/sparcv8 ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/sparcv9 ;\
|
2007-09-05 21:11:04 +08:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/sparcv9v ;\
|
2007-09-06 15:03:54 +08:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/sparc64 ;\
|
2007-09-05 21:11:04 +08:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/sparc64v ;;\
|
2007-08-06 17:02:54 +08:00
|
|
|
ia64*) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/ia64 ;;\
|
|
|
|
s390*) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/s390 ;;\
|
|
|
|
mipsel*) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/mipsel ;;\
|
|
|
|
mips*) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/mips ;;\
|
|
|
|
powerpc*) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/ppc ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/ppciseries ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/ppcpseries ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/ppc64 ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/ppc64iseries ;\
|
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/ppc64pseries ;;\
|
|
|
|
*) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/@host_cpu@ ;;\
|
1999-03-12 14:00:17 +08:00
|
|
|
esac
|
2007-08-06 17:02:54 +08:00
|
|
|
$(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/noarch
|
2001-08-01 02:13:22 +08:00
|
|
|
@case "@host_os@" in \
|
2007-08-06 17:02:54 +08:00
|
|
|
mint) $(MKDIR_P) $(DESTDIR)$(pkgsrcdir)/RPMS/m68kmint ;;\
|
2005-01-25 13:24:40 +08:00
|
|
|
solaris*|linux*|darwin*) \
|
2007-09-05 16:45:46 +08:00
|
|
|
DESTDIR="$(DESTDIR)" pkglibdir="$(rpmconfigdir)" $(SHELL) $(top_srcdir)/installplatform rpmrc macros platform ;; \
|
1999-06-18 05:35:34 +08:00
|
|
|
esac
|
2007-08-31 22:27:10 +08:00
|
|
|
@$(MKDIR_P) $(DESTDIR)$(localstatedir)/tmp
|
1998-10-08 18:40:27 +08:00
|
|
|
|
2007-07-24 19:59:58 +08:00
|
|
|
# XXX to appease distcheck we need to remove "stuff" here...
|
|
|
|
uninstall-local:
|
2007-09-07 15:17:34 +08:00
|
|
|
@rm -rf $(DESTDIR)/$(rpmconfigdir)/*-*
|
|
|
|
rm -f $(DESTDIR)$(rpmlibexecdir)/rpmu
|
|
|
|
rm -f $(DESTDIR)$(rpmlibexecdir)/rpme
|
|
|
|
rm -f $(DESTDIR)$(rpmlibexecdir)/rpmt
|
|
|
|
rm -f $(DESTDIR)$(rpmlibexecdir)/rpmv
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmquery
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmbuild
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmu
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmsign
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpme
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmverify
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmdb
|
|
|
|
rm -f $(DESTDIR)$(bindir)/rpmi
|
|
|
|
|
2007-07-24 19:59:58 +08:00
|
|
|
distclean-local:
|
|
|
|
@rm -rf Doxytags apidocs
|
|
|
|
@rm -f stamp-h.in db3/*.orig db3/db3lobjs
|
2007-09-07 01:18:09 +08:00
|
|
|
|
|
|
|
MAINTAINERCLEANFILES = ChangeLog
|
2007-07-24 19:59:58 +08:00
|
|
|
|
2001-05-10 06:58:56 +08:00
|
|
|
.PHONY: setperms
|
|
|
|
setperms:
|
|
|
|
@for f in $(rpmbin_PROGRAMS) ; do\
|
|
|
|
$(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(rpmbindir)/$$f ;\
|
2001-05-14 01:55:58 +08:00
|
|
|
$(__CHMOD) g+s $(DESTDIR)$(rpmbindir)/$$f ;\
|
2001-05-10 06:58:56 +08:00
|
|
|
done
|
|
|
|
@for f in $(bin_PROGRAMS) ; do\
|
|
|
|
$(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(bindir)/$$f ;\
|
|
|
|
done
|
2007-09-05 16:45:46 +08:00
|
|
|
@for f in $(rpmlibexec_PROGRAMS) ; do\
|
|
|
|
$(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(rpmlibexecdir)/$$f ;\
|
|
|
|
$(__CHMOD) g+s $(DESTDIR)$(rpmlibexecdir)/$$f ;\
|
2001-05-10 06:58:56 +08:00
|
|
|
done
|
|
|
|
@for f in $(pkglib_SCRIPTS) ; do\
|
|
|
|
$(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(pkglibdir)/$$f ;\
|
|
|
|
done
|
|
|
|
@$(__CHOWN) ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(pkglibdir)
|
2007-08-31 11:58:43 +08:00
|
|
|
@$(__CHOWN) -R ${RPMUSER}.${RPMGROUP} $(DESTDIR)$(rpmvardir)
|
|
|
|
-@$(__CHMOD) 0664 $(DESTDIR)$(rpmvardir)/[A-Z]*
|
|
|
|
-@$(__CHMOD) 0775 $(DESTDIR)$(rpmvardir)
|
|
|
|
-@$(__CHMOD) 0664 $(DESTDIR)$(rpmvardir)/__db.*
|
2001-05-11 12:01:04 +08:00
|
|
|
|
2001-05-14 01:55:58 +08:00
|
|
|
.PHONY: unsetgid
|
|
|
|
unsetgid:
|
2001-05-11 12:01:04 +08:00
|
|
|
@for f in $(rpmbin_PROGRAMS) ; do\
|
2001-05-14 01:55:58 +08:00
|
|
|
$(__CHMOD) g-s $(DESTDIR)$(rpmbindir)/$$f ;\
|
2001-05-11 12:01:04 +08:00
|
|
|
done
|
2007-09-05 16:45:46 +08:00
|
|
|
@for f in $(rpmlibexec_PROGRAMS) ; do\
|
|
|
|
$(__CHMOD) g-s $(DESTDIR)$(rpmlibexecdir)/$$f ;\
|
2001-05-11 12:01:04 +08:00
|
|
|
done
|
2001-05-10 06:58:56 +08:00
|
|
|
|
2000-12-04 08:55:17 +08:00
|
|
|
.PHONY: doxygen
|
2003-03-11 07:28:24 +08:00
|
|
|
doxygen @WITH_APIDOCS_TARGET@: Doxyfile rpmpopt-@VERSION@
|
2000-12-04 08:55:17 +08:00
|
|
|
rm -rf $@
|
2007-08-06 17:02:54 +08:00
|
|
|
$(MKDIR_P) $@
|
2007-10-18 15:04:17 +08:00
|
|
|
- [ X"@DOXYGEN@" != Xno ] && @DOXYGEN@
|
2007-10-17 20:36:47 +08:00
|
|
|
|
|
|
|
doc/librpm.doxy: doc/librpm.doxy.in $(pkginclude_HEADERS) Makefile.am
|
2007-10-18 15:04:17 +08:00
|
|
|
(cd $(top_builddir) && ./config.status --file=${subdir}/doc/librpm.doxy.tmp:${subdir}/doc/librpm.doxy.in )
|
|
|
|
files=`echo " $(pkginclude_HEADERS)" | $(SED) -e 's, , @top_srcdir@/,g'`; \
|
|
|
|
$(SED) -e "s,[@]pkginclude_HEADERS[@],$$files," \
|
2007-10-17 20:36:47 +08:00
|
|
|
< doc/librpm.doxy.tmp > doc/librpm.doxy
|
|
|
|
EXTRA_DIST += doc/librpm.doxy.in
|
|
|
|
|
|
|
|
doc/librpm/html/index.html: doc/librpm.doxy
|
2007-10-18 15:04:17 +08:00
|
|
|
@DOXYGEN@ doc/librpm.doxy
|
2007-10-17 20:36:47 +08:00
|
|
|
noinst_DATA += doc/librpm/html/index.html
|
|
|
|
EXTRA_DIST += doc/librpm/html
|
|
|
|
|
|
|
|
maintainer-clean-local:
|
2007-10-18 15:51:32 +08:00
|
|
|
rm -rf doc/librpm
|
2007-10-17 21:23:15 +08:00
|
|
|
|
|
|
|
if WITH_INTERNAL_DB
|
|
|
|
db.h: $(top_builddir)/db3/db.h
|
|
|
|
$(LN_S) $(top_builddir)/db3/db.h $@
|
|
|
|
BUILT_SOURCES = db.h
|
|
|
|
endif
|
2007-10-17 21:38:33 +08:00
|
|
|
DISTCLEANFILES += db.h
|