-
Notifications
You must be signed in to change notification settings - Fork 6
/
GNUmakefile.in
99 lines (82 loc) · 2.9 KB
/
GNUmakefile.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
# DT PS Tree
#
# Douglas Thrift
#
# @configure_input@
# Copyright 2010 Douglas Thrift
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
VPATH := @srcdir@
srcdir := @srcdir@
top_builddir := @top_builddir@
CPPFLAGS := @CPPFLAGS@ $(filter -DPACKAGE_TARNAME% -DPACKAGE_VERSION% -DHAVE_NCURSES% -DHAVE_TERM% -DHAVE_STRUCT_KINFO_PROC% -DHAVE_KINFO_NEWABI% -DHAVE_DECL_KERN_PROC_PROC% -DHAVE_DECL_KERN_PROC_KTHREAD%,@DEFS@)
CXX := @CXX@
CXXFLAGS := @CXXFLAGS@ -Wall -Wno-long-long -Wno-parentheses
LDFLAGS := @LDFLAGS@
LDLIBS := @LIBS@
PACKAGE_TARNAME := @PACKAGE_TARNAME@
PACKAGE_VERSION := @PACKAGE_VERSION@
TARNAME := $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)
INSTALL := @INSTALL@
INSTALL_PROGRAM := @INSTALL_PROGRAM@
INSTALL_DATA := @INSTALL_DATA@
HELP2MAN := @HELP2MAN@
REALPATH := @REALPATH@
BSDTAR := @BSDTAR@
prefix := @prefix@
exec_prefix := @exec_prefix@
bindir := @bindir@
sbindir := @sbindir@
libexecdir := @libexecdir@
datarootdir := @datarootdir@
datadir := @datadir@
sysconfdir := @sysconfdir@
sharedstatedir := @sharedstatedir@
localstatedir := @localstatedir@
includedir := @includedir@
oldincludedir := @oldincludedir@
docdir := @docdir@
infodir := @infodir@
htmldir := @htmldir@
dvidir := @dvidir@
pdfdir := @pdfdir@
psdir := @psdir@
libdir := @libdir@
localedir := @localedir@
mandir := @mandir@
man1dir := ${mandir}/man1
.PHONY: all man dist install uninstall clean distclean
all: dtpstree
ifneq ($(HELP2MAN),:)
ifneq ($(REALPATH),:)
man: $(srcdir)/man1/dtpstree.1
$(srcdir)/man1/%.1: % %.man
$(HELP2MAN) -I $(filter %.man,$^) -Nn '$(shell sed -e '$$ s|^// ||p;d' $(srcdir)/$<.cpp)' -v -Vs $(shell $(REALPATH) $<) | sed -e 's/^\\fB\\-\([a-zA-Z]\)\([A-Z][A-Z]*\)\\fR/\\fB\\-\1\\fI\2\\fR/;s/^\\fB\\-\([a-zA-Z]\)\[\([A-Z][A-Z]*\)\]\\fR/\\fB\\-\1\\fR[\\fI\2\\fR]/;s/^\([A-Z][A-Z]*\), \\fB\\-\\-/\\fI\1\\fR, \\fB\\-\\-/' > $@
endif
endif
ifneq ($(BSDTAR),:)
dist: man
$(BSDTAR) -cf $(TARNAME).tar.bz2 -js '/^\./$(TARNAME)/' -vX .gitignore --exclude='.git*' .
$(BSDTAR) -cf $(TARNAME).tar.xz -Js '/^\./$(TARNAME)/' -vX .gitignore --exclude='.git*' .
endif
install: all
$(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
$(INSTALL_PROGRAM) -s dtpstree $(DESTDIR)$(bindir)
$(INSTALL_DATA) $(srcdir)/man1/dtpstree.1 $(DESTDIR)$(man1dir)
uninstall:
rm -f $(DESTDIR)$(bindir)/dtpstree
rm -f $(DESTDIR)$(man1dir)/dtpstree.1
clean:
rm -f dtpstree $(wildcard *core)
distclean: clean
rm -f GNUmakefile config.log config.status makefile