Path: utzoo!utgpu!water!watmath!clyde!bellcore!rutgers!mailrus!ames!vsi1!rick From: rick@vsi1.UUCP (Rick Schneider) Newsgroups: comp.unix.questions Subject: Re: help with Makefile Message-ID: <914@vsi1.UUCP> Date: 11 Aug 88 15:23:12 GMT References: <370@fedeva.UUCP> Organization: VICOM Systems Inc., San Jose, CA Lines: 26 From article <370@fedeva.UUCP>, by wrd3156@fedeva.UUCP (Bill Daniels): > > ... but leaves ugly ".c"s around after the > compilation has completed. < init_db: $(DIR1)/init_db.o < /bin/sh $(ULD) init_db \ < $(DIR1)/init_db.o < < $(DIR1)/init_db.o: $(DIR1)/init_db.c $(DEFS)/file.h \ < $(LOCINC)/cr.h $(LOCINC)/input.h < cd $(DIR1); $(UCC) init_db.c rm -f init_db.c ^^^^^^^^^^^^^^^ or add a new directive: clean: rm -f $(DIR1)/*.c and when you want to remove the source files type: make clean