Home | History | Annotate | Line # | Download | only in menuc
Makefile revision 1.1
      1  1.1  phil # Menu system compiler Makefile
      2  1.1  phil #
      3  1.1  phil 
      4  1.1  phil SRCS = main.c parse.y scan.l avl.c mdb.c util.c
      5  1.1  phil 
      6  1.1  phil DATA = menu_sys.def
      7  1.1  phil 
      8  1.1  phil DATADIR= /usr/share/misc
      9  1.1  phil 
     10  1.1  phil PROG=menuc
     11  1.1  phil 
     12  1.1  phil MAN=menuc.1
     13  1.1  phil 
     14  1.1  phil LDADD= -lfl
     15  1.1  phil 
     16  1.1  phil WARNS= 1
     17  1.1  phil 
     18  1.1  phil CLEANFILES += y.tab.h
     19  1.1  phil 
     20  1.1  phil CFLAGS += -I. -I${.CURDIR}
     21  1.1  phil 
     22  1.1  phil .include<bsd.prog.mk>
     23  1.1  phil 
     24  1.1  phil .for M in ${DATA}
     25  1.1  phil 
     26  1.1  phil proginstall:: ${DESTDIR}${DATADIR}/${M}
     27  1.1  phil .if !defined(UPDATE)
     28  1.1  phil .PHONY: ${DESTDIR}${DATADIR}/${M}
     29  1.1  phil .endif
     30  1.1  phil .if !defined(BUILD)
     31  1.1  phil ${DESTDIR}${DATADIR}/${M}: .MADE
     32  1.1  phil .endif
     33  1.1  phil 
     34  1.1  phil ${DESTDIR}${DATADIR}/${M}: ${M}
     35  1.1  phil 	$(INSTALL) -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.ALLSRC} ${.TARGET}
     36  1.1  phil .endfor
     37  1.1  phil 
     38