-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
79 lines (57 loc) · 1.6 KB
/
Copy pathMakefile
File metadata and controls
79 lines (57 loc) · 1.6 KB
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
# Makefile.in for `RUNOFF'
# Copyright (C) 2014 Bernd Warken <bernd.warken@web.de>
# Last update: 5 Jan 2014
# This file is part of `RUNOFF'.
# This file is part of RUNOFF, a free software project.
# You can redistribute it and/or modify it under the terms of the GNU
# General Public License version 2 or (at your option) any later
# version. as published by the Free Software Foundation (FSF).
# You can find the text of this license in the file `gpl-2.0.txt'
# in this package. It is also available in the internet at
# <http://www.gnu.org/licenses/gpl-2.0.html>.
########################################################################
RM=rm -f
CP=cp -a
MKDIR=mkdir -p
MAN1=runoff2mom.1
MAN7=\
runoff.7 \
runoff_filenames.7 \
runoff_history.7
PREFIX=/usr/local
MANDIR=$(PREFIX)/share/man
MAN1DIR=$(MANDIR)/man1
MAN7DIR=$(MANDIR)/man7
PROG=runoff2mom
BINDIR=/usr/local/bin
DIRS=$(MAN1DIR) $(MAN7DIR) $(BINDIR)
all: $(PROG)
$(PROG): $(PROG).pl
$(CP) $< $@
$(BINDIR):
test -d $(BINDIR) || $(MKDIR) $(BINDIR)
$(MAN1DIR):
test -d $(MAN1DIR) || $(MKDIR) $(MAN1DIR)
$(MAN7DIR):
test -d $(MAN7DIR) || $(MKDIR) $(MAN7DIR)
install: $(MAN1) $(MAN7) $(PROG) $(DIRS)
$(CP) $(PROG) $(BINDIR)
$(CP) $(MAN1) $(MAN1DIR)
$(CP) $(MAN7) $(MAN7DIR)
uninstall:
$(RM) $(BINDIR)/$(PROG)
for m in $(MAN1); do \
$(RM) $(MAN1DIR)/$$m; \
done
for m in $(MAN7); do \
$(RM) $(MAN7DIR)/$$m; \
done
clean:
$(RM) $(PROG)
########################################################################
# Emacs settings
########################################################################
#
# Local Variables:
# mode: makefile
# End: