1 # $Header: /cvs/src/tdl/Makefile.in,v 1.7.2.2 2004/01/07 00:09:05 richard Exp $
3 # tdl - A console program for managing to-do lists
4 # Copyright (C) 2001-2004 Richard P. Curnow
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
20 #######################################################################
21 # Note, the @xxx@ macros are filled in by the configure script. You
22 # should not need to edit this file directly.
23 #######################################################################
24 # Select C compiler and compile options
26 CFLAGS=@cflags@ @defines@
27 READLINE_DEFINE=@readline_define@
28 INC_READLINE=@inc_readline@
29 LIB_READLINE=@lib_readline@
31 #######################################################################
32 # If you're generating a package, you may want to use
33 # make DESTDIR=temporary_dir install
34 # to get the software installed to a directory where you can create
35 # a tdl.tar.gz from it
38 #######################################################################
40 prefix=$(DESTDIR)@prefix@
41 bindir=$(DESTDIR)@bindir@
42 mandir=$(DESTDIR)@mandir@
43 man1dir=$(mandir)/man1
45 #######################################################################
46 # YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW HERE
48 OBJ = main.o io.o add.o done.o remove.o move.o list.o \
49 report.o purge.o util.o dates.o impexp.o narrow.o \
55 $(CC) $(CFLAGS) -o tdl $(OBJ) $(LIB_READLINE)
61 $(CC) $(CFLAGS) $(READLINE_DEFINE) $(INC_READLINE) -c $<
73 tdl.vr tdl.tp tdl.pg tdl.ky tdl.fn tdl.cp \
74 tdl.toc tdl.log tdl.dvi tdl.aux \
75 tdl.txt tdl.html tdl.info* tdl.pdf tdl.ps
78 rm -f Makefile config.log
81 [ -d $(pprefix) ] || mkdir -p $(pprefix)
82 [ -d $(bindir) ] || mkdir -p $(bindir)
83 [ -d $(mandir) ] || mkdir -p $(mandir)
84 [ -d $(man1dir) ] || mkdir -p $(man1dir)
86 chmod 555 $(bindir)/tdl
87 (cd $(bindir); ln -sf tdl tdla; ln -sf tdl tdll; ln -sf tdl tdls; ln -sf tdl tdld; ln -sf tdl tdlg)
88 gzip -9 < tdl.1 > $(man1dir)/tdl.1.gz
89 chmod 444 $(man1dir)/tdl.1.gz
90 (cd $(man1dir); for x in tdla tdll tdls tdld tdlg ; do ln -sf tdl.1.gz $${x}.1.gz ; done )
93 docs : tdl.info tdl.txt tdl.html tdl.dvi tdl.pdf
99 makeinfo --no-split --number-sections --no-headers tdl.texi > tdl.txt
102 makeinfo --no-split --number-sections --html tdl.texi > tdl.html
117 # Using cvs2cl.pl version 2.48
119 cvs2cl -r -b -T --show-dead