summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-09-25 19:16:51 +0000
committerewt <devnull@localhost>1996-09-25 19:16:51 +0000
commite35bd4f4cfb71e28008257d5b1625b3255f30350 (patch)
treeb575a64903ddfcd9de34323c7db2d86f58a526ac /build
parent88926b82b97dfec0d56ee5dd21d0c20ddb9b56bb (diff)
downloadrpm-e35bd4f4cfb71e28008257d5b1625b3255f30350.tar.gz
rpm-e35bd4f4cfb71e28008257d5b1625b3255f30350.tar.bz2
rpm-e35bd4f4cfb71e28008257d5b1625b3255f30350.zip
1) use Makefile.inc
2) added distclean rule CVS patchset: 1055 CVS date: 1996/09/25 19:16:51
Diffstat (limited to 'build')
-rw-r--r--build/Makefile.in14
1 files changed, 7 insertions, 7 deletions
diff --git a/build/Makefile.in b/build/Makefile.in
index 56dce8239..3cefb7a70 100644
--- a/build/Makefile.in
+++ b/build/Makefile.in
@@ -1,17 +1,14 @@
-CC = @CC@
-CPP = @CPP@
-
srcdir = @srcdir@
VPATH = $(srcdir)
LIBOBJECTS = spec.o vspec.o build.o files.o names.o pack.o myftw.o reqprov.o
LIBBUILD = libbuild.a
LOADLIBES = -lrpm $(LIBEFENCE)
-AR = ar r
-RANLIB = ranlib
# -----------------------------------------------------------------------
+include $(srcdir)/../Makefile.inc
+
ifeq (.depend,$(wildcard .depend))
TARGET=everything
else
@@ -23,7 +20,7 @@ all: $(TARGET)
everything: $(LIBBUILD)
$(LIBBUILD): $(LIBOBJECTS)
- $(AR) $@ $(LIBOBJECTS)
+ $(AR) r $@ $(LIBOBJECTS)
$(RANLIB) $@
$(PROGS): $(LIBOBJECTS)
@@ -31,8 +28,11 @@ $(PROGS): $(LIBOBJECTS)
clean:
rm -f *.a *.o *~ $(PROGS)
+distclean:
+ rm -f .depend Makefile
+
depend:
- $(CPP) $(CFLAGS) -M *.c > .depend
+ $(CPP) $(CFLAGS) -M $(srcdir)/*.c > .depend
ifeq (.depend,$(wildcard .depend))
include .depend