#Makefile for note #j.a. rupley, tucson, arizona 85716 CC = cc CFLAGS = -Wall -ggdb -O $(OPTIONS) LDFLAGS = GDIR= ../chgdate GSOURCES= $(GDIR)/getdate.o $(GDIR)/getmisc.o \ $(GDIR)/jul_greg.o $(GDIR)/getlex.o $(GDIR)/getyacc.o INSTALLDIR= $$HOME/bin MANDIR= $$HOME/man SOURCES = note.o $(GSOURCES) note: $(SOURCES) $(CC) $(CFLAGS) $(SOURCES) $(LDFLAGS) -o note $(GSOURCES): cd $(GDIR); make install: # -strip note -cp -p note $(INSTALLDIR) -cp -p note.1 $(MANDIR)/man1 @echo "need to: mkdir ${HOME}/tmp ${HOME}/memos; these directories are used by " clean: rm note.o core a.out deep-clean: clean rm note shar: (cd .. ; shar `cat note/Sharlist` >note/date-note ) print: pr note.c|lp # nroff -man note.1 |lp