Debian Codegraph @

deformatters/Makefile

raw symbols ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 #
2 # $Id: Makefile,v 1.10 2022-09-18 00:10:46-07 geoff Exp $
3 #
4 # Copyright 2001, Geoff Kuenning, Claremont, CA
5 # All rights reserved.
6 #
7 # Redistribution and use in source and binary forms, with or without
8 # modification, are permitted provided that the following conditions
9 # are met:
10 #
11 # 1. Redistributions of source code must retain the above copyright
12 # notice, this list of conditions and the following disclaimer.
13 # 2. Redistributions in binary form must reproduce the above copyright
14 # notice, this list of conditions and the following disclaimer in the
15 # documentation and/or other materials provided with the distribution.
16 # 3. All modifications to the source code must be clearly marked as
17 # such. Binary redistributions based on modified source code
18 # must be clearly marked as modified versions in the documentation
19 # and/or other materials provided with the distribution.
20 # 4. The code that causes the 'ispell -v' command to display a prominent
21 # link to the official ispell Web site may not be removed.
22 # 5. The name of Geoff Kuenning may not be used to endorse or promote
23 # products derived from this software without specific prior
24 # written permission.
25 #
26 # THIS SOFTWARE IS PROVIDED BY GEOFF KUENNING AND CONTRIBUTORS ``AS IS'' AND
27 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28 # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
29 # ARE DISCLAIMED. IN NO EVENT SHALL GEOFF KUENNING OR CONTRIBUTORS BE LIABLE
30 # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 # SUCH DAMAGE.
37 #
38
39 #
40 # $Log: Makefile,v $
41 # Revision 1.10 2022-09-18 00:10:46-07 geoff
42 # Make sure BINDIR exists when instaling
43 #
44 # Revision 1.9 2015-02-08 01:11:13-08 geoff
45 # Support DESTDIR
46 #
47 # Revision 1.8 2015-02-08 00:56:20-08 geoff
48 # Change executable names and fix a few misuses of make.
49 #
50 # Revision 1.7 2005/05/01 23:04:58 geoff
51 # Add EXEEXT to executables for DOS portability (courtesy of Eli Zaretskii).
52 #
53 # Revision 1.6 2004/06/02 06:30:28 geoff
54 # Add .c: and .o: rules so proper flags are always used.
55 #
56 # Revision 1.5 2004/06/02 06:28:12 geoff
57 # Minor license update
58 #
59 # Revision 1.4 2001/09/06 00:35:18 geoff
60 # Shorten names so that the deformatters can be built on MS-DOS.
61 #
62 # Revision 1.3 2001/07/25 21:51:48 geoff
63 # *** empty log message ***
64 #
65 # Revision 1.2 2001/07/23 20:43:38 geoff
66 # *** empty log message ***
67 #
68 # Revision 1.1 2001/06/07 07:23:54 geoff
69 # Initial revision
70 #
71 #
72
73 SHELL = /bin/sh
74 MAKE = make
75
76 PROGRAMS = defmt-c$(EXEEXT) defmt-sh$(EXEEXT)
77
78 all: $(PROGRAMS)
79
80 defmt-c: defmt-c.o
81 @. ../config.sh; \
82 set -x; \
83 $$CC $(LDFLAGS) -o $@ $<
84
85 defmt-sh: defmt-sh.o
86 @. ../config.sh; \
87 set -x; \
88 $$CC $(LDFLAGS) -o $@ $<
89
90 .c.o:
91 @. ../config.sh; \
92 set -x; \
93 $$CC $$CFLAGS -c $<
94
95 install: all
96 @. ../config.sh; \
97 set -x; \
98 rm -f $(DESTDIR)$$BINDIR/defmt-c $(DESTDIR)$$BINDIR/defmt-sh
99 @. ../config.sh; \
100 set -x; \
101 mkdir -p $(DESTDIR)$$BINDIR; \
102 $$INSTALL $(PROGRAMS) $(DESTDIR)$$BINDIR
103 @. ../config.sh; \
104 set -x; \
105 cd $(DESTDIR)$$BINDIR; \
106 strip $(PROGRAMS); \
107 chmod 755 $(PROGRAMS)
108
109 clean:
110 rm -f *.o core a.out mon.out $(PROGRAMS)
111
112 realclean veryclean: clean