From c28c61993f654bd4b225537ea04effa5c4a5337f Mon Sep 17 00:00:00 2001 From: ian Date: Sun, 29 Nov 1998 15:35:53 +0000 Subject: [PATCH] Better clean and new realclean. --- regress/.cvsignore | 3 +++ src/Makefile | 9 +++++++-- src/Makefile.in | 9 +++++++-- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/regress/.cvsignore b/regress/.cvsignore index c6b0695..70857af 100644 --- a/regress/.cvsignore +++ b/regress/.cvsignore @@ -1,2 +1,5 @@ dtest hrecord +harness.h +hcommon.c +hrecord.c diff --git a/src/Makefile b/src/Makefile index e29b85a..9934a61 100644 --- a/src/Makefile +++ b/src/Makefile @@ -31,9 +31,11 @@ LIBOBJS= types.o event.o query.o reply.o general.o setup.o transmit.o parse.o HARNLOBJS= $(addsuffix _d.o, $(basename $(LIBOBJS))) ALLOBJS= $(LIBOBJS) $(HARNLOBJS) dtest.o hrecord.o hplayback.o hcommon.o -all: dtest hrecord +TARGETS= dtest hrecord # hplayback +all: $(TARGETS) + hrecord: dtest.o hrecord.o hcommon.o $(HARNLOBJS) dtest: dtest.o $(LIBOBJS) @@ -47,7 +49,10 @@ dtest: dtest.o $(LIBOBJS) @mv -f $@-b.new $@; rm -f $@-a.new clean: - rm -f dtest *.o harness.h hrecord.c hcommon.c + rm -f *.o harness.h hrecord.c hcommon.c + +realclean: clean + rm -f $(TARGETS) *~ ./#*# core *.orig *.rej hrecord.o hcommon.o: adns.h internal.h harness.h $(HARNLOBJS): adns.h internal.h diff --git a/src/Makefile.in b/src/Makefile.in index e29b85a..9934a61 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -31,9 +31,11 @@ LIBOBJS= types.o event.o query.o reply.o general.o setup.o transmit.o parse.o HARNLOBJS= $(addsuffix _d.o, $(basename $(LIBOBJS))) ALLOBJS= $(LIBOBJS) $(HARNLOBJS) dtest.o hrecord.o hplayback.o hcommon.o -all: dtest hrecord +TARGETS= dtest hrecord # hplayback +all: $(TARGETS) + hrecord: dtest.o hrecord.o hcommon.o $(HARNLOBJS) dtest: dtest.o $(LIBOBJS) @@ -47,7 +49,10 @@ dtest: dtest.o $(LIBOBJS) @mv -f $@-b.new $@; rm -f $@-a.new clean: - rm -f dtest *.o harness.h hrecord.c hcommon.c + rm -f *.o harness.h hrecord.c hcommon.c + +realclean: clean + rm -f $(TARGETS) *~ ./#*# core *.orig *.rej hrecord.o hcommon.o: adns.h internal.h harness.h $(HARNLOBJS): adns.h internal.h -- 2.30.2