1998-10-08 18:40:27 +08:00
|
|
|
# Top level Makefile for rpm
|
|
|
|
|
1999-01-20 07:54:30 +08:00
|
|
|
AUTOMAKE_OPTIONS = 1.4 foreign
|
1998-10-08 18:40:27 +08:00
|
|
|
|
1999-01-22 02:42:53 +08:00
|
|
|
EXTRA_DIST = CHANGES CREDITS README.amiga RPM-PGP-KEY \
|
|
|
|
autodeps/none autodeps/*.prov autodeps/*.req autogen.sh \
|
1999-01-22 06:30:50 +08:00
|
|
|
docs/[a-z]* gendiff groups $(man_MANS) po/*.in po/*.po po/rpm.pot \
|
|
|
|
rpm.magic rpmpopt rpm.spec rpm.8ru rpm2cpio.8ru
|
1999-01-22 02:42:53 +08:00
|
|
|
|
1999-01-22 01:18:38 +08:00
|
|
|
SUBDIRS = popt build lib po intl misc tools scripts tests .
|
1998-10-08 18:40:27 +08:00
|
|
|
|
1998-10-11 23:19:55 +08:00
|
|
|
INCLUDES = -I$(top_srcdir)/build -I$(top_srcdir)/lib -I$(top_srcdir)/intl @INCPATH@
|
1998-10-08 18:40:27 +08:00
|
|
|
|
1999-01-22 06:30:50 +08:00
|
|
|
tbd = `pwd`/$(top_builddir)
|
|
|
|
|
|
|
|
LDFLAGS = -all@LDFLAGS_STATIC@ -L$(tbd)/build -L$(tbd)/lib -L$(tbd)/popt -L$(tbd)/misc
|
1998-10-08 18:40:27 +08:00
|
|
|
|
|
|
|
rpmbindir = $(subst usr/bin,bin,$(bindir))
|
|
|
|
rpmbin_PROGRAMS = rpm
|
|
|
|
|
|
|
|
bin_PROGRAMS = rpm2cpio
|
|
|
|
bin_SCRIPTS = gendiff
|
|
|
|
noinst_PROGRAMS = rpmconvert
|
|
|
|
|
1999-01-22 06:30:50 +08:00
|
|
|
man_MANS = rpm.8 rpm2cpio.8 # rpm.8ru rpm2cpio.8ru
|
1998-10-08 18:40:27 +08:00
|
|
|
|
|
|
|
configdir = @RPMCONFIGDIR@
|
|
|
|
config_DATA = rpmrc rpmpopt macros
|
|
|
|
config_SCRIPTS = find-provides find-requires mkinstalldirs
|
|
|
|
|
|
|
|
noinst_HEADERS = \
|
|
|
|
acconfig.h build.h checksig.h ftp.h \
|
1998-10-27 13:41:02 +08:00
|
|
|
install.h system.h url.h \
|
1998-10-08 18:40:27 +08:00
|
|
|
verify.h
|
|
|
|
|
1999-01-22 06:30:50 +08:00
|
|
|
mylibs = ./build/librpmbuild.a ./lib/librpm.a ./popt/libpopt.a
|
|
|
|
|
1998-10-27 13:41:02 +08:00
|
|
|
rpm_SOURCES = build.c checksig.c ftp.c install.c rpm.c url.c \
|
1998-10-08 18:40:27 +08:00
|
|
|
verify.c
|
1998-12-01 04:54:35 +08:00
|
|
|
rpm_LDADD = -lrpmbuild -lrpm -lpopt @LIBMISC@
|
1998-10-08 18:40:27 +08:00
|
|
|
|
1999-01-22 06:30:50 +08:00
|
|
|
$(PROGRAMS): $(mylibs)
|
1998-10-08 18:40:27 +08:00
|
|
|
|
|
|
|
include ./Makefile.inc
|
|
|
|
|
1998-11-21 04:18:22 +08:00
|
|
|
.PHONY: lclint
|
|
|
|
lclint:
|
|
|
|
lclint ${DEFS} ${INCLUDES} ${rpm_SOURCES}
|
|
|
|
|
1998-10-08 22:23:53 +08:00
|
|
|
CVSTAG = r$(subst .,-,$(VERSION))
|
|
|
|
|
1998-10-08 18:40:27 +08:00
|
|
|
rpm2cpio_SOURCES = rpm2cpio.c
|
1998-12-01 04:54:35 +08:00
|
|
|
rpm2cpio_LDADD = -lrpmbuild -lrpm -lpopt
|
1998-10-08 18:40:27 +08:00
|
|
|
|
|
|
|
rpmconvert_SOURCES = convertdb.c oldrpmdb.c
|
1998-12-01 04:54:35 +08:00
|
|
|
rpmconvert_LDADD = -lrpmbuild -lrpm -lpopt -lgdbm
|
1998-10-08 18:40:27 +08:00
|
|
|
|
|
|
|
install-data-local:
|
1998-10-20 21:40:27 +08:00
|
|
|
@$(mkinstalldirs) $(DESTDIR)/var/lib/rpm
|
1998-11-19 05:41:05 +08:00
|
|
|
@rm -f $(DESTDIR)/$(libdir)/rpmrc
|
|
|
|
@ln -s rpm/rpmrc $(DESTDIR)/$(libdir)/rpmrc
|
|
|
|
@rm -f $(DESTDIR)/$(libdir)/rpmpopt
|
|
|
|
@ln -s rpm/rpmpopt $(DESTDIR)/$(libdir)/rpmpopt
|
1998-10-20 21:40:27 +08:00
|
|
|
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/BUILD
|
|
|
|
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/RPMS/noarch
|
1998-10-20 22:40:34 +08:00
|
|
|
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/RPMS/@build_cpu@
|
1998-10-20 21:40:27 +08:00
|
|
|
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SOURCES
|
|
|
|
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SPECS
|
|
|
|
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SRPMS
|
|
|
|
@$(mkinstalldirs) $(DESTDIR)/var/lib/rpm
|
|
|
|
@$(mkinstalldirs) $(DESTDIR)/var/tmp
|
1998-10-08 18:40:27 +08:00
|
|
|
|
|
|
|
# FIXME: these should be generated in configure.in
|
|
|
|
find-requires: find-requires.sh
|
|
|
|
cp $< $@
|
|
|
|
find-provides: find-provides.sh
|
|
|
|
cp $< $@
|
|
|
|
rpmrc: lib-rpmrc
|
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
# FIXME: these should be checked
|
|
|
|
.PHONY: tar
|
|
|
|
tar:
|
|
|
|
rm -rf /tmp/rpm-$(VERSION)
|
|
|
|
make installprefix=/tmp/rpm-$(VERSION)$(ROOT) install
|
|
|
|
$(mkinstalldirs) /tmp/rpm-$(VERSION)/usr/local/src/redhat/SOURCES
|
|
|
|
$(mkinstalldirs) /tmp/rpm-$(VERSION)/usr/local/src/redhat/SPECS
|
|
|
|
$(mkinstalldirs) /tmp/rpm-$(VERSION)/usr/local/src/redhat/SRPMS
|
|
|
|
$(mkinstalldirs) /tmp/rpm-$(VERSION)/usr/local/src/redhat/RPMS
|
|
|
|
$(mkinstalldirs) /tmp/rpm-$(VERSION)/usr/local/src/redhat/BUILD
|
|
|
|
$(mkinstalldirs) /tmp/rpm-$(VERSION)/var/local/lib/rpm
|
|
|
|
$(mkinstalldirs) /tmp/rpm-$(VERSION)/var/tmp
|
|
|
|
# Couldn't figure de ARCH value
|
|
|
|
# $(mkinstalldirs) /tmp/rpm-$(VERSION)/usr/local/src/redhat/RPMS/i386
|
|
|
|
cd /tmp/rpm-$(VERSION) ; tar cvf /tmp/rpm-$(VERSION).tar .
|
|
|
|
|
|
|
|
.PHONY: noconfig
|
|
|
|
noconfig:
|
|
|
|
find . -name "Makefile" -exec rm {} \;
|
|
|
|
rm -f *gz *rpm config.*
|
|
|
|
|
|
|
|
.PHONY: archive
|
|
|
|
archive:
|
|
|
|
@echo " "
|
|
|
|
@echo "I hope you checked everything out and made sure it builds"
|
|
|
|
@echo "maybe someday Erik will get around to making that automatic."
|
|
|
|
@echo
|
|
|
|
@echo "This is version $(VERSION)."
|
|
|
|
@sleep 5
|
|
|
|
@cvs -Q tag -F $(CVSTAG) .
|
|
|
|
@rm -rf /tmp/rpm-$(VERSION) /tmp/rpm
|
|
|
|
@cd /tmp; cvs -Q -d $(CVSROOT) export -r$(CVSTAG) rpm || :
|
|
|
|
@mv /tmp/rpm /tmp/rpm-$(VERSION)
|
|
|
|
@rm /tmp/rpm-$(VERSION)/popt/popt.spec
|
1999-01-20 03:50:18 +08:00
|
|
|
@cd /tmp/rpm-$(VERSION); ./autogen.sh
|
1999-01-20 03:56:37 +08:00
|
|
|
@make -C /tmp/rpm-$(VERSION) distclean
|
1998-10-08 18:40:27 +08:00
|
|
|
@cd /tmp/rpm-$(VERSION); ./autogen.sh --noconfigure
|
|
|
|
@cd /tmp; tar czSpf rpm-$(VERSION).tar.gz rpm-$(VERSION)
|
|
|
|
@rm -rf /tmp/rpm-$(VERSION)
|
|
|
|
@cp /tmp/rpm-$(VERSION).tar.gz .
|
|
|
|
@rm -f /tmp/rpm-$(VERSION).tar.gz
|
|
|
|
@echo " "
|
|
|
|
@echo "The final archive is ./rpm-$(VERSION).tar.gz."
|