-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
122 lines (94 loc) · 3.48 KB
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# $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
BINTARGET = tdl@binext@
all : $(BINTARGET)
$(BINTARGET) : $(OBJ)
$(CC) $(CFLAGS) -o $(BINTARGET) $(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 $<
clean:
rm -f $(BINTARGET) *.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 $(BINTARGET) $(bindir)/$(BINTARGET)
chmod 555 $(bindir)/$(BINTARGET)
(cd $(bindir); ln -sf $(BINTARGET) tdla; ln -sf $(BINTARGET) tdll; ln -sf $(BINTARGET) tdld; ln -sf $(BINTARGET) 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