Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!erikb From: erikb@cs.vu.nl (Erik Baalbergen) Newsgroups: comp.unix.questions Subject: Re: help with make needed Message-ID: <2407@erikb.cs.vu.nl> Date: 27 Apr 89 07:21:15 GMT References: <19308@adm.BRL.MIL> Reply-To: erikb@cs.vu.nl (Erik Baalbergen) Organization: VU Informatica, Amsterdam Lines: 36 In article <19308@adm.BRL.MIL> dpaulso@relay.nswc.navy.mil writes: >In several makefiles I've seen the prerequisite `FRC' used, as in >>Makefile: FRC >> -@if echo "Makefile: $(TARGET) ; @/bin/false" | make -qf - ; \ >> then rm -f $(TARGET) ; fi >I've also seen `FRC' used as the ultimate prerequisite for a group of >dependencies that are .RECURSIVE >but i've not seen any reference to `FRC' in TFM. any hints as to what >it means and/or does? >Dave Paulson dpaulso@relay.nswc.navy.mil (703)663-2137 >"I've upped my standards; now up yours" -- Pat Paulsen ``FRC'' stands for `Forced ReCompilation''. It occurs as a dummy dependent for the targets that need to be rebuilt in every ``make.'' FRC should be specified as a target, without dependents and command block, in the make prelude or in the Makefile itself. Be sure that no file FRC exists; ``make'' assumes any non-file target be out-of-date. The Makefile below demonstrates the use of FRC. --8<------8<------8<------8<------8<------8<------8<------8<------8<------ # Demonstrate the behavior of a fake target just-a-target: FRC touch just-a-target FRC: # This is the fake target --8<------8<------8<------8<------8<------8<------8<------8<------8<------ (Of course, the fake target may have another name!) At every ``make (just-a-target)'', the touch command is executed. Erik Baalbergen -- Erik H. Baalbergen Vrije Universiteit / Dept. of Maths. & Comp. Sc. De Boelelaan 1081 1081 HV Amsterdam / The Netherlands tel. +31 20 548 8080