Home | History | Annotate | Line # | Download | only in examples
Makefile revision 1.3
      1 #	$NetBSD: Makefile,v 1.3 1999/02/13 02:54:55 lukem Exp $
      2 
      3 CRUNCHED=   fixit
      4 
      5 # below is boiler-plate to make $(CRUNCHED) from $(CRUNCHED).conf
      6 # I'd use PROG instead of CRUNCHED, but the system makefiles REALLY want
      7 # to build things in the normal way if you use PROG.
      8 
      9 CONF=	$(CRUNCHED).conf
     10 
     11 OUTMK=	$(CRUNCHED).mk
     12 OUTPUTS=  $(OUTMK) $(CRUNCHED).c $(CRUNCHED).cache
     13 
     14 MKMAN=	no
     15 CLEANFILES+=$(CRUNCHED) $(OUTPUTS) *.o *.lo *_stub.c
     16 
     17 all: $(CRUNCHED)
     18 exe: $(CRUNCHED)
     19 
     20 $(OUTPUTS): $(CONF)
     21 	crunchgen ${.CURDIR}/$(CONF)
     22 
     23 $(CRUNCHED): $(OUTPUTS) submake
     24 
     25 submake:
     26 	make -f $(OUTMK)
     27 objs:
     28 	make -f $(OUTMK) objs
     29 
     30 .include <bsd.prog.mk>
     31