Makefile: don't use ln -sf.

CVS patchset: 2384
CVS date: 1998/10/02 14:01:29
This commit is contained in:
jbj 1998-10-02 14:01:29 +00:00
parent 0d38d87261
commit 4e3cea63b5
2 changed files with 8 additions and 9 deletions

View File

@ -17,6 +17,7 @@
- add new fully recursive macro.c - add new fully recursive macro.c
2.5.4 -> 2.5.5: 2.5.4 -> 2.5.5:
- Makefile: don't use ln -sf.
- getOutputFrom(): fix race between last read on pipe and child death - getOutputFrom(): fix race between last read on pipe and child death
(exacerbated in 2.5.4). (exacerbated in 2.5.4).
- rpm.spec: create /usr/src/redhat/* in %install. - rpm.spec: create /usr/src/redhat/* in %install.

View File

@ -37,7 +37,7 @@ OTHERSUBDIRS = docs autodeps
OBJS = rpm.o query.o install.o verify.o checksig.o ftp.o url.o build.o \ OBJS = rpm.o query.o install.o verify.o checksig.o ftp.o url.o build.o \
@GETTEXTSTUB@ @GETTEXTSTUB@
PROGS = @RPM@ rpm2cpio PROGS = @RPM@ rpm2cpio
LIBS = @LIBS@ @LIBINTL@ @LIBDL@ LIBS = @LIBS@ @LIBINTL@ @LIBDL@ $(LIBEFENCE)
LOADLIBES = -lrpmbuild -lpopt -lrpm @LIBMISC@ LOADLIBES = -lrpmbuild -lpopt -lrpm @LIBMISC@
LDFLAGS_STATIC = @LDFLAGS_STATIC@ LDFLAGS_STATIC = @LDFLAGS_STATIC@
@ -52,12 +52,10 @@ endif
all: $(TARGET) all: $(TARGET)
rpm: lib/librpm.a build/librpmbuild.a @MISCPATH@ $(OBJS) rpm: lib/librpm.a build/librpmbuild.a @MISCPATH@ $(OBJS)
$(CC) -o rpm $(LDFLAGS_STATIC) $(OBJS) $(LDFLAGS) $(LOADLIBES) $(LIBS) \ $(CC) -o rpm $(LDFLAGS_STATIC) $(OBJS) $(LDFLAGS) $(LOADLIBES) $(LIBS)
$(LIBEFENCE)
rpm.shared: lib/librpm.a build/librpmbuild.a $(OBJS) rpm.shared: lib/librpm.a build/librpmbuild.a $(OBJS)
$(CC) -o rpm.shared $(LDFLAGS) $(OBJS) $(LOADLIBES) $(LIBS) \ $(CC) -o rpm.shared $(LDFLAGS) $(OBJS) $(LOADLIBES) $(LIBS)
$(LIBEFENCE)
# we don't normally build this, so ./configure doesn't try very hard # we don't normally build this, so ./configure doesn't try very hard
# to make it work # to make it work
@ -97,10 +95,10 @@ make-subdirs:
newtree: newtree:
rm -f RCS rm -f RCS
ln -sf /usr/rhs/RCS/rpm-2.0 RCS ln -s /usr/rhs/RCS/rpm-2.0 RCS
for d in $(SUBDIRS) $(OTHERSUBDIRS); do \ for d in $(SUBDIRS) $(OTHERSUBDIRS); do \
$(mkinstalldirs) $$d ;\ $(mkinstalldirs) $$d ;\
(cd $$d; rm -f RCS; ln -sf /usr/rhs/RCS/rpm-2.0/$$d RCS) \ (cd $$d; rm -f RCS; ln -s /usr/rhs/RCS/rpm-2.0/$$d RCS) \
|| case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac;\ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac;\
done && test -z "$$fail" done && test -z "$$fail"
@ -138,8 +136,8 @@ install: all
$(INSTALL_DATA) -m 644 $(topdir)/macros $(installprefix)/$(RPMCONFIGDIR)/macros $(INSTALL_DATA) -m 644 $(topdir)/macros $(installprefix)/$(RPMCONFIGDIR)/macros
$(INSTALL_DATA) -m 644 $(topdir)/lib-rpmrc $(installprefix)/$(RPMCONFIGDIR)/rpmrc $(INSTALL_DATA) -m 644 $(topdir)/lib-rpmrc $(installprefix)/$(RPMCONFIGDIR)/rpmrc
$(INSTALL_DATA) -m 644 $(srcdir)/rpmpopt $(installprefix)/$(RPMCONFIGDIR)/rpmpopt $(INSTALL_DATA) -m 644 $(srcdir)/rpmpopt $(installprefix)/$(RPMCONFIGDIR)/rpmpopt
ln -sf $(RPMCONFIGDIR)/rpmrc $(installprefix)/$(LIBDIR)/rpmrc (cd $(installprefix)/$(LIBDIR); rm -f rpmrc; ln -s $(RPMCONFIGDIR)/rpmrc)
ln -sf $(RPMCONFIGDIR)/rpmpopt $(installprefix)/$(LIBDIR)/rpmpopt (cd $(installprefix)/$(LIBDIR); rm -f rpmpopt; ln -s $(RPMCONFIGDIR)/rpmpopt)
(cd lib; $(MAKE) LIBDIR=$(installprefix)/$(LIBDIR) INCDIR=$(installprefix)/$(INCDIR) install) (cd lib; $(MAKE) LIBDIR=$(installprefix)/$(LIBDIR) INCDIR=$(installprefix)/$(INCDIR) install)
(cd build; $(MAKE) LIBDIR=$(installprefix)/$(LIBDIR) INCDIR=$(installprefix)/$(INCDIR) install) (cd build; $(MAKE) LIBDIR=$(installprefix)/$(LIBDIR) INCDIR=$(installprefix)/$(INCDIR) install)
for d in $(INSTSUBDIRS); do \ for d in $(INSTSUBDIRS); do \