File: Makefile.in

package info (click to toggle)
sitecopy 1%3A0.16.6-7
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 5,668 kB
  • ctags: 5,783
  • sloc: ansic: 48,856; sh: 3,820; makefile: 774; yacc: 291; awk: 58; sed: 27
file content (222 lines) | stat: -rw-r--r-- 6,953 bytes parent folder | download | duplicates (7)
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
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
#
# sitecopy Makefile: generated from Makefile.in.
#

SHELL = @SHELL@
@SET_MAKE@

# Installation paths
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
mandir = @mandir@
man1dir = $(mandir)/man1
docdir = $(prefix)/doc/sitecopy
localedir = $(datadir)/locale
datadir = @datadir@
datarootdir = @datarootdir@
pkgdatadir = $(datadir)/sitecopy

# Build paths.
VPATH = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = .

# Toolchain settings
LDFLAGS = @LDFLAGS@
INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/lib
CPPFLAGS = @CPPFLAGS@ @DEFS@ -DLOCALEDIR=\"$(localedir)\"
CFLAGS = @CFLAGS@
ALL_CFLAGS = $(CPPFLAGS) $(INCLUDES) $(CFLAGS)
LIBS = @NEON_LIBS@ @LIBINTL@ @LIBS@
CC = @CC@

# libintl must be built first.
SUBDIRS = intl lib/neon
EXPATDIR = lib/expat

INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL = @INSTALL@
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs

##########################################################################
# Install paths and misc files required for a smooth Xsitecopy experience.
##########################################################################

DESKTOP_DIR = $(prefix)/share/gnome/apps/Internet
XSC_DESKTOP = $(top_srcdir)/gnome/share/xsitecopy.desktop

GHELPDIR = $(prefix)/share/gnome/help/xsitecopy
XSC_HELP = $(GHELPDIR)/C
PNG_DIR = $(prefix)/share/pixmaps/xsitecopy

GLADE_DIR = $(prefix)/share/xsitecopy
XSC_GLADE = $(top_srcdir)/gnome/share/sitecopy-dialogs.glade

# Target is the name of the executable
TARGET = @TARGET@@EXEEXT@

OBJECTS = src/sites.o src/sitefiles.o src/sitestore.o \
	src/rcfile.o src/common.o src/nulldriver.o src/lsparser.o \
	@EXTRAOBJS@

GNOMEOBJS = gnome/changes.o gnome/minilist.o gnome/file_widgets.o \
	gnome/gcommon.o gnome/init.o gnome/main.o gnome/misc.o \
	gnome/new_site.o gnome/operations.o gnome/resynch.o \
	gnome/site_widgets.o gnome/tree.o

# The list of stuff which autoconf reckons we need to compile
# since the native libc hasn't got it.
LIBOBJS = lib/netrc.o lib/basename.o lib/dirname.o @LIBOBJS@

# Everything we want to compile into the target
ALLOBJS = $(OBJECTS) $(LIBOBJS)

DATAFILES = doc/examplerc doc/changes.awk
DOCS = README NEWS THANKS doc/update.sh
MANLANGS = fr

all: $(TARGET)

.PHONY: all again clean distclean reminders install-common	\
	install-sitecopy install-xsitecopy install-nls subdirs \
	ChangeLog

.SUFFIXES:
.SUFFIXES: .c .o

$(TARGET): subdirs $(ALLOBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS) $(LIBOBJS)
	@echo
	@echo " Compilation complete. Run 'make install' to install sitecopy."
	@echo " (You may need to become root to do this)"
	@echo

subdirs: $(SUBDIRS)
	@for d in $(SUBDIRS); do \
	echo ">>> Entering $$d"; \
	(cd $$d && $(MAKE) all) || exit 1; \
	echo "<<< Leaving $$d"; \
	done

.c.o:
	$(CC) $(ALL_CFLAGS) -o $@ -c $<

Makefile: Makefile.in
	./config.status Makefile

# Various tester utils which can also be built.
#

# RFC1123 date/time tester
# netrc parser tester
netrc: lib/netrc.c
	$(CC) $(ALL_CFLAGS) -DSTANDALONE -o $@ $^

# Dependencies:

HEADERS = src/common.h src/frontend.h src/i18n.h src/protocol.h		\
	src/sites.h src/ftp.h src/lsparser.h src/rcfile.h src/sitesi.h	\
	lib/basename.h lib/dirname.h lib/fnmatch.h lib/getopt.h		\
	lib/netrc.h config.h

src/common.o: src/common.c $(HEADERS)
src/console_fe.o: src/console_fe.c $(HEADERS)
src/davdriver.o: src/davdriver.c $(HEADERS)
src/ftp.o: src/ftp.c $(HEADERS)
src/ftpdriver.o: src/ftpdriver.c $(HEADERS)
src/lsparser.o: src/lsparser.c $(HEADERS)
src/nulldriver.o: src/nulldriver.c $(HEADERS)
src/rcfile.o: src/rcfile.c $(HEADERS)
src/rshdriver.o: src/rshdriver.c $(HEADERS)
src/sitefiles.o: src/sitefiles.c $(HEADERS)
src/sites.o: src/sites.c $(HEADERS)
src/sitestore.o: src/sitestore.c $(HEADERS)
lib/basename.o: lib/basename.c lib/basename.h config.h
lib/dirname.o: lib/dirname.c lib/dirname.h config.h
lib/netrc.o: lib/netrc.c lib/netrc.h config.h
lib/rpmatch.o: lib/rpmatch.c config.h
lib/yesno.o: lib/yesno.c config.h

$(EXPATDIR)/xmltok/nametab.h: $(EXPATDIR)/gennmtab/gennmtab@EXEEXT@
	rm -f $@
	$(EXPATDIR)/gennmtab/gennmtab@EXEEXT@ >$@

$(EXPATDIR)/gennmtab/gennmtab@EXEEXT@: $(top_srcdir)/$(EXPATDIR)/gennmtab/gennmtab.c
	$(CC) $(LDFLAGS) $(ALL_CFLAGS) -o $@ $(top_srcdir)/$(EXPATDIR)/gennmtab/gennmtab.c

$(EXPATDIR)/xmltok/xmltok.o: $(EXPATDIR)/xmltok/xmltok.c $(EXPATDIR)/xmltok/xmltok.h $(EXPATDIR)/xmltok/nametab.h

# The install goal is different for each front end, so
# we have a separate goal for each and autoconf points the 
# main 'install' goal at the FE we're compiling for.

install: $(TARGET) install-@TARGET@ install-nls

install-nls:
	@cd po && $(MAKE) install

install-common: $(TARGET)
	@echo "Creating directories..."
	$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(pkgdatadir) $(DESTDIR)$(docdir)
	@echo "Installing $(TARGET) executable..."
	$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)
	@echo "Installing data files..."
	set -e; for f in $(DATAFILES); do \
		$(INSTALL_DATA) $(top_srcdir)/$$f $(DESTDIR)$(pkgdatadir)/`echo $$f | sed 's/^doc\///'`; \
	done
	@echo "Installing documentation..."
	set -e; for f in $(DOCS); do \
		$(INSTALL_DATA) $(top_srcdir)/$$f $(DESTDIR)$(docdir)/`echo $$f | sed 's/^doc\///'`; \
	done

install-sitecopy: install-common
	@echo "Installing man page..."
	$(mkinstalldirs) $(DESTDIR)$(man1dir)
	$(INSTALL_DATA) $(top_srcdir)/doc/sitecopy.1 $(DESTDIR)$(man1dir)/sitecopy.1
	for f in $(MANLANGS); do $(mkinstalldirs) $(DESTDIR)$(mandir)/$$f/man1; \
		$(INSTALL_DATA) $(top_srcdir)/doc/sitecopy.$$f.1 \
			     $(DESTDIR)$(mandir)/$$f/man1/sitecopy.1; done
	@echo
	@echo "sitecopy installation finished."
	@echo

install-xsitecopy: install-common
	@echo Installing additional GNOME requirements...
	@echo Creating directories...
	$(mkinstalldirs) $(DESTDIR)$(GHELPDIR) $(DESTDIR)$(XSC_HELP) $(DESTDIR)$(DESKTOP_DIR) $(DESTDIR)$(PNG_DIR) $(DESTDIR)$(GLADE_DIR)
	@echo Installing help files...
	set -e; cd $(top_srcdir)/gnome/doc && for f in *.html topic.dat; do \
		$(INSTALL_DATA) $$f $(DESTDIR)$(XSC_HELP)/$$f; \
	done
	@echo Installing images...
	set -e; cd $(top_srcdir)/gnome/share && for f in *.png; do \
		$(INSTALL_DATA) $$f $(DESTDIR)$(PNG_DIR)/$$f; \
	done
	@echo Installing user-interface components...
	$(INSTALL_DATA) $(XSC_GLADE) $(DESTDIR)$(GLADE_DIR)/sitecopy-dialogs.glade
	@echo Adding desktop shortcut...
	$(INSTALL_DATA) $(XSC_DESKTOP) $(DESTDIR)$(DESKTOP_DIR)/xsitecopy.desktop
	@echo
	@echo "XSitecopy installation finished."
	@echo

clean:
	rm -f $(ALLOBJS)
	for d in $(SUBDIRS) po; do (cd $$d && $(MAKE) clean) || exit 1; done

again: clean
	$(MAKE) $(TARGET)

distclean: clean
	for d in intl lib/neon po; do \
	  if [ -f $$d/Makefile ]; then (cd $$d && $(MAKE) distclean); fi; \
	done
	rm -f config.h config.cache config.log config.status Makefile stamp-h core
	rm -f `find $(top_srcdir) \( -name '*.orig' -o -name '*.rej' \
		-o -name '#*#' -o -name '*~' \) -print`

ChangeLog:
	svn log > $@