-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
172 lines (135 loc) · 4.63 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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# -*- coding: utf-8; -*-
# Emacs Makefile for Tramp
# @configure_input@
# Copyright (C) 1998-2020 Free Software Foundation, Inc.
# Author: Kai Großjohann <[email protected]>
# Michael Albinus <[email protected]>
# Keywords: comm, processes
# This file 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 3 of the License, or
# (at your option) any later version.
# This file 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 GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
# This Makefile requires GNU make and GNU tar.
@SET_MAKE@
EMACS = @EMACS@
RM = -rm -f
AUTOCONF = autoconf
DESTDIR =
DIRS = lisp texi
CONFIG_FILES = @TRAMP_CONFIG_FILES@
CLEAN_FILES = @TRAMP_CLEAN_FILES@
TRAMP_VERSION = $(shell sed -n -e 's/^;; Version: *//p' lisp/tramp.el)
# To be used by maintainer only.
VERSION = $(subst .,-,@PACKAGE_VERSION@)
TARNAME = @PACKAGE_TARNAME@-@PACKAGE_VERSION@
EMACS_TARGET = ../emacs
# lisp/trampver.el and lisp/tramp-loaddefs.el are not listed here
# since they are generated files, but the files listed here are
# subjected to "git diff". We just copy them.
EMACS_EL_FILES = lisp/tramp.el lisp/tramp-adb.el lisp/tramp-archive.el \
lisp/tramp-cache.el lisp/tramp-cmds.el \
lisp/tramp-compat.el lisp/tramp-ftp.el \
lisp/tramp-gvfs.el lisp/tramp-integration.el \
lisp/tramp-rclone.el lisp/tramp-sh.el lisp/tramp-smb.el \
lisp/tramp-sudoedit.el lisp/tramp-uu.el
# texi/trampver.texi is not listed here since it is a generated file,
# but the files listed here are subjected to "git diff". We just copy
# it. texi/trampinst.texi does not belong to Emacs.
EMACS_TEXI_FILES = texi/tramp.texi
EMACS_TEST_FILES = tramp-archive-tests.el tramp-tests.el
# ftp upload program to be used.
ifeq (@FTP_UPLOAD@, yes)
# Michaels flavor.
FTP_UPLOAD = ftp-upload --host ftp-upload.gnu.org \
--dir /incoming/ftp
else
# Kais flavor.
FTP_UPLOAD = ftp -u ftp://ftp-upload.gnu.org/incoming/ftp
endif
# Tramp test arguments.
TRAMP_TEST_ARGS =
# Decrease noise.
.SILENT: all lisp info install clean
.PHONY: all install lisp info check clean distclean \
tags test maintainer-clean gittag MANIFEST tar \
savannah
all install: $(CONFIG_FILES)
for a in ${DIRS}; do \
$(MAKE) -C $$a \
"EMACS=$(EMACS)" "DESTDIR=$(DESTDIR)" \
$(MAKECMDGOALS); \
done
ifneq (@PACKAGE_VERSION@, $(TRAMP_VERSION))
all install: autoconf
endif
lisp: $(CONFIG_FILES)
$(MAKE) -C lisp \
"EMACS=$(EMACS)" "DESTDIR=$(DESTDIR)" all
info: $(CONFIG_FILES)
$(MAKE) -C texi \
"EMACS=$(EMACS)" "DESTDIR=$(DESTDIR)" all
check test: $(CONFIG_FILES) lisp
$(MAKE) -C test \
"EMACS=$(EMACS)" "DESTDIR=$(DESTDIR)" \
"TRAMP_TEST_ARGS=$(TRAMP_TEST_ARGS)" all
clean:
$(RM) $(CLEAN_FILES)
for a in ${DIRS} test; do \
$(MAKE) -C $$a clean; \
done
distclean: clean
for a in ${DIRS} test; do \
$(MAKE) -C $$a distclean; \
done
$(RM) $(CONFIG_FILES) MANIFEST *.tar.gz*
$(RM) -r autom4te.cache info
tags:
etags lisp/*.el test/*.el texi/*.texi
# Maintainer targets.
maintainer-clean: distclean
$(RM) configure config.status
gittag:
git tag -f V-$(VERSION)
git push --tags
# Depends on configure in order to run autoconf. All files
# which shall be produced on customer host should be removed.
MANIFEST: configure distclean
find . \( -name .git -prune \) \
-o \( -name info -prune \) \
-o \( -name tmp -prune \) \
-o \( -type f \! -name .gitignore \) \
-print > MANIFEST
./config.status
tar: MANIFEST
rm -rf $(TARNAME)
mkdir $(TARNAME)
tar cpfT - MANIFEST | ( cd $(TARNAME) ; tar xpf - )
chmod -R a+r $(TARNAME)
tar cvpfz $(TARNAME).tar.gz $(TARNAME)
$(RM) -r $(TARNAME)
gpg --detach-sign $(TARNAME).tar.gz
echo "version: 1.1\ndirectory: tramp\nfilename: $(TARNAME).tar.gz" \
>$(TARNAME).tar.gz.directive
gpg --clearsign $(TARNAME).tar.gz.directive
$(RM) $(TARNAME).tar.gz.directive
chmod a+r $(TARNAME).tar.gz*
savannah: tar gittag
$(FTP_UPLOAD) $(TARNAME).tar.gz*
./configure
$(MAKE) -C texi savannah
# Targets updating files generated by autoconf and configure.
$(CONFIG_FILES): $(CONFIG_FILES:=.in) config.status
./config.status
config.status: configure
./config.status --recheck
configure: aclocal.m4 configure.ac
$(AUTOCONF)
autoconf:
@$(AUTOCONF) -f
@$(MAKE) configure