page@ulowell.UUCP (02/24/87)
Here is a Makefile to build the 'delay' script. Actually, it just builds the 'grabheaders' program which delay needs. It assumes you're using the 2.11 version of news. Change the DIST and DEST variables as appropriate for your site, then type 'make install' (it will grab the needed files out of the distribution). ..Bob -- Bob Page, U of Lowell CS Dept. ulowell!page, page@ulowell.CSNET # --- cut here --- # Makefile to build the 'grabheaders' program # (Used by the 'delay' script) # Change 'DIST' to the location of the news distribution: DIST=/usr/src/new/news # Change 'DEST' to where you want 'delay' and 'grabheaders' put DEST=/usr/local/bin CFLAGS=-O all: delay grabheaders install: delay grabheaders cp delay $(DEST); chmod 755 $(DEST)/delay cp grabheaders $(DEST); chmod 111 $(DEST)/grabheaders grabheaders: grabheaders.c getdate.c cc $(CFLAGS) -o grabheaders grabheaders.c getdate.c getdate.c: getdate.y defs.h @echo "Expect 8 shift/reduce conflicts" yacc getdate.y mv y.tab.c getdate.c grabheaders.c: cp $(DIST)/misc/grabheaders.c . getdate.y: cp $(DIST)/src/getdate.y . defs.h: cp $(DIST)/src/defs.h . delay: cp $(DIST)/misc/delay . clean: rm -f *.o getdate.c core a.out