-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
64 lines (47 loc) · 1.54 KB
/
Makefile
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
#========================================================================
# Makefile for text2pdf by Nelson Beebe
# NB: This program requires an ANSI/ISO Standard C compiler, such as
# GNU gcc.
#
# The ".pok" file is a PDF file produced with
# "text2pdf text2pdf.c > text2pdf.pok" on some master system. Subsequent
# installations can be verified against this file using "make check".
# Nelson recommends using "make all check install".
#
# [16-Oct-1996]
#========================================================================
# Change this to suit local customs
BINDIR = /usr/local/bin
# The rest of this Makefile should not require changes on any UNIX system
CHMOD = /bin/chmod
DIFF = /bin/diff
CP = /bin/cp
RM = /bin/rm -f
PROGRAM = text2pdf
SHELL = /bin/sh
#========================================================================
all: $(PROGRAM)
check: $(PROGRAM) $(PROGRAM).pdf
@echo "The only differences should be in the /CreationDate lines"
-$(DIFF) $(PROGRAM).pdf $(PROGRAM).pok
clean mostlyclean:
-$(RM) *.i
-$(RM) *.o
-$(RM) *~
-$(RM) \#*
-$(RM) a.out
-$(RM) core
clobber distclean: clean
-$(RM) $(PROGRAM)
-$(RM) $(PROGRAM).pdf
install: all uninstall
$(CP) $(PROGRAM) $(BINDIR)/$(PROGRAM)
$(CHMOD) 775 $(BINDIR)/$(PROGRAM)
maintainer-clean: distclean
@echo "This command is intended for maintainers to use;"
@echo "it deletes files that may require special tools to rebuild."
-$(RM) $(PROGRAM).pok
$(PROGRAM).pdf: $(PROGRAM).c $(PROGRAM)
./$(PROGRAM) $(PROGRAM).c >$(PROGRAM).pdf
uninstall:
-$(RM) $(BINDIR)/$(PROGRAM)