chiark / gitweb /
Better clean and new realclean.
authorian <ian>
Sun, 29 Nov 1998 15:35:53 +0000 (15:35 +0000)
committerian <ian>
Sun, 29 Nov 1998 15:35:53 +0000 (15:35 +0000)
regress/.cvsignore
src/Makefile
src/Makefile.in

index c6b06959ec4a91bdaa70224abfc11e81e39c0935..70857af0ecbd4db46c6364b8e8c7eb267bb436a9 100644 (file)
@@ -1,2 +1,5 @@
 dtest
 hrecord
+harness.h
+hcommon.c
+hrecord.c
index e29b85aec3ec068cf7d5c12c1168f360feffad3f..9934a61235c143250b8de4d7efd8a58d7132094a 100644 (file)
@@ -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
index e29b85aec3ec068cf7d5c12c1168f360feffad3f..9934a61235c143250b8de4d7efd8a58d7132094a 100644 (file)
@@ -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