Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!dali.cs.montana.edu!ogicse!zephyr.ens.tek.com!tektronix!nosun!qiclab!m2xenix!quagga!ctk1!olsa99!zeusa!hendrik From: hendrik@zeusa.UUCP (Hendrik Vermooten) Newsgroups: comp.unix.programmer Subject: Make into archive in XENIX Message-ID: <881@zeusa.UUCP> Date: 24 Nov 90 14:41:08 GMT Organization: ZEUS software, Verwoerdburg Lines: 45 Hi, all. When I use the Makefile (listed below) under XENIX, it compiles modules that have changed twice. For instance, if I "touch strvalid.c" and then type "make -n", I get: cc -c -O strvalid.c ar rv c.a strvalid.o rm -f strvalid.o cc -c -O strvalid.c ar rv c.a strvalid.o cp c.a /lib/386/SlibC.a ranlib /lib/386/SlibC.a rm -f strvalid.o Am I doing something wrong? TFM doesn't shed any light! [Yes, the appropriate lines DO start with tabs: I just took them out in the posting] Makefile: -------------------------------- .PRECIOUS: c.a c.a: c.a(alloc.o) c.a(dates.o) c.a(dtemonth.o) c.a(time.o) c.a(dtextend.o) c.a(dteformt.o)\ c.a(edit.o) c.a(datedit.o) c.a(editnum.o) c.a(getparam.o) c.a(zfgets.o)\ c.a(filename.o) c.a(funclib.o) c.a(head.o) c.a(dos.o) c.a(utils.o)\ c.a(keyboard.o) c.a(logging.o) c.a(xlate.o) c.a(list.o)\ c.a(lowprint.o) c.a(mystring.o) c.a(parser.o) c.a(encrypt.o)\ c.a(passwd.o) c.a(pool.o) c.a(prcode.o) c.a(printer.o) c.a(showtic.o)\ c.a(ptrbug.o) c.a(pushpop.o) c.a(regexp.o) c.a(ringmenu.o) c.a(backup.o)\ c.a(round.o) c.a(select.o) c.a(selfile.o) c.a(setpassw.o) c.a(filescan.o)\ c.a(showerr.o) c.a(strvalid.o) c.a(sysdate.o) c.a(funckey.o) c.a(calc.o)\ c.a(sysexit.o) c.a(terminal.o) c.a(text.o) c.a(trace.o) c.a(typeahea.o) $(CC) -c $(CFLAGS) $(?:.o=.c) ar rv c.a $? cp c.a /lib/386/SlibC.a ranlib /lib/386/SlibC.a rm -f $? -- --------------------- He who laughs last laughs last --------------------- Hendrik Vermooten, ZEUS software TEL +27 12 64-5507, FAX +27 12 64-8382 Bang: ..!uunet!ddsw1!olsa99!zeusa!hendrik or hendrik@zeusa.UUCP ----------------- He whose laugh lasts longest laughs last ---------------