]> Joshua Wise's Git repositories - tdl.git/blob - Makefile.in
6385dde4989c3c28e07cb7c8fd9f26e5110c8f72
[tdl.git] / Makefile.in
1 #  $Header: /cvs/src/tdl/Makefile.in,v 1.7.2.2 2004/01/07 00:09:05 richard Exp $
2 #  
3 #  tdl - A console program for managing to-do lists
4 #  Copyright (C) 2001-2004  Richard P. Curnow
5 #
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.
10 #
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.
15 #
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
19
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
25 CC=@cc@
26 CFLAGS=@cflags@ @defines@
27 READLINE_DEFINE=@readline_define@
28 INC_READLINE=@inc_readline@
29 LIB_READLINE=@lib_readline@
30
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
36 DESTDIR=
37
38 #######################################################################
39
40 prefix=$(DESTDIR)@prefix@
41 bindir=$(DESTDIR)@bindir@
42 mandir=$(DESTDIR)@mandir@
43 man1dir=$(mandir)/man1
44
45 #######################################################################
46 # YOU SHOULD NOT NEED TO CHANGE ANYTHING BELOW HERE
47
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 \
50                         inter.o
51
52 all : tdl
53
54 tdl : $(OBJ)
55         $(CC) $(CFLAGS) -o tdl $(OBJ) $(LIB_READLINE)
56
57 %.o : %.c
58         $(CC) $(CFLAGS) -c $<
59
60 inter.o : inter.c
61         $(CC) $(CFLAGS) $(READLINE_DEFINE) $(INC_READLINE) -c $<
62
63 version.h:
64         ./mkversion
65
66 main.o : version.h
67
68 %.s : %.c
69         $(CC) $(CFLAGS) -S $<
70
71 clean:
72         rm -f tdl *.o core \
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
76         
77 distclean: clean
78         rm -f Makefile config.log
79
80 install:
81         [ -d $(pprefix) ] || mkdir -p $(pprefix)
82         [ -d $(bindir) ] || mkdir -p $(bindir)
83         [ -d $(mandir) ] || mkdir -p $(mandir)
84         [ -d $(man1dir) ] || mkdir -p $(man1dir)
85         cp tdl $(bindir)/tdl
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 )
91
92         
93 docs : tdl.info tdl.txt tdl.html tdl.dvi tdl.pdf
94
95 tdl.info : tdl.texi
96         makeinfo tdl.texi
97
98 tdl.txt : tdl.texi
99         makeinfo --no-split --number-sections --no-headers tdl.texi > tdl.txt
100
101 tdl.html : tdl.texi
102         makeinfo --no-split --number-sections --html tdl.texi > tdl.html
103
104 tdl.dvi : tdl.texi
105         tex tdl.texi
106         tex tdl.texi
107
108 tdl.ps : tdl.dvi
109         dvips tdl.dvi -o
110
111 tdl.pdf : tdl.texi
112         pdftex tdl.texi
113         pdftex tdl.texi
114
115 .PHONY : ChangeLog
116
117 # Using cvs2cl.pl version 2.48
118 ChangeLog:
119         cvs2cl -r -b -T --show-dead
120
This page took 0.020295 seconds and 2 git commands to generate.