# $Header: /cvs/src/tdl/Makefile.in,v 1.7.2.2 2004/01/07 00:09:05 richard Exp $ # # tdl - A console program for managing to-do lists # Copyright (C) 2001-2004 Richard P. Curnow # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ####################################################################### # Note, the @xxx@ macros are filled in by the configure script. You # should not need to edit this file directly. ####################################################################### # Select C compiler and compile options CC=@cc@ CFLAGS=@cflags@ @defines@ READLINE_DEFINE=@readline_define@ INC_READLINE=@inc_readline@ LIB_READLINE=@lib_readline@ ####################################################################### # If you're generating a package, you may want to use # make DESTDIR=temporary_dir install # to get the software installed to a directory where you can create # a tdl.tar.gz from it DESTDIR= ####################################################################### prefix=$(DESTDIR)@prefix@ bindir=$(DESTDIR)@bindir@ mandir=$(DESTDIR)@mandir@ man1dir=$(mandir)/man1 ####################################################################### # YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW HERE OBJ = main.o io.o add.o done.o remove.o move.o list.o \ report.o purge.o util.o dates.o impexp.o narrow.o \ inter.o all : tdl tdl : $(OBJ) $(CC) $(CFLAGS) -o tdl $(OBJ) $(LIB_READLINE) %.o : %.c $(CC) $(CFLAGS) -c $< inter.o : inter.c $(CC) $(CFLAGS) $(READLINE_DEFINE) $(INC_READLINE) -c $< version.h: ./mkversion main.o : version.h %.s : %.c $(CC) $(CFLAGS) -S $< .PHONY: clean distclean install clean: rm -f tdl *.o core \ tdl.vr tdl.tp tdl.pg tdl.ky tdl.fn tdl.cp \ tdl.toc tdl.log tdl.dvi tdl.aux \ tdl.txt tdl.html tdl.info* tdl.pdf tdl.ps distclean: clean rm -f Makefile config.log install: [ -d $(pprefix) ] || mkdir -p $(pprefix) [ -d $(bindir) ] || mkdir -p $(bindir) [ -d $(mandir) ] || mkdir -p $(mandir) [ -d $(man1dir) ] || mkdir -p $(man1dir) cp tdl $(bindir)/tdl chmod 555 $(bindir)/tdl (cd $(bindir); ln -sf tdl tdla; ln -sf tdl tdll; ln -sf tdl tdls; ln -sf tdl tdld; ln -sf tdl tdlg) gzip -9 < tdl.1 > $(man1dir)/tdl.1.gz chmod 444 $(man1dir)/tdl.1.gz (cd $(man1dir); for x in tdla tdll tdls tdld tdlg ; do ln -sf tdl.1.gz $${x}.1.gz ; done ) docs : tdl.info tdl.txt tdl.html tdl.dvi tdl.pdf tdl.info : tdl.texi makeinfo tdl.texi tdl.txt : tdl.texi makeinfo --no-split --number-sections --no-headers tdl.texi > tdl.txt tdl.html : tdl.texi makeinfo --no-split --number-sections --html tdl.texi > tdl.html tdl.dvi : tdl.texi tex tdl.texi tex tdl.texi tdl.ps : tdl.dvi dvips tdl.dvi -o tdl.pdf : tdl.texi pdftex tdl.texi pdftex tdl.texi .PHONY : ChangeLog # Using cvs2cl.pl version 2.48 ChangeLog: cvs2cl -r -b -T --show-dead