File: Makefile.am

package info (click to toggle)
esmtp 1.2-17
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 908 kB
  • sloc: ansic: 1,842; sh: 1,389; yacc: 200; lex: 145; makefile: 49
file content (48 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download | duplicates (5)
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
AM_CFLAGS= -DSYSCONFDIR=\"@sysconfdir@\"
bin_PROGRAMS = esmtp

dist_man_MANS = esmtp.1 esmtprc.5

esmtp_SOURCES = \
	lexer.l \
	list.h \
	local.c \
	local.h \
	main.c \
	main.h \
	message.c \
	message.h \
	parser.y \
	rcfile.h \
	rfc822.c \
	rfc822.h \
	smtp.c \
	smtp.h \
	xmalloc.h

BUILT_SOURCES = parser.h

EXTRA_DIST = \
	sample.esmtprc \
	esmtp-wrapper

AM_YFLAGS = -d

install-exec-hook:
	$(mkinstalldirs) $(DESTDIR)$(sbindir) $(DESTDIR)$(libdir)
	rm -f $(DESTDIR)$(sbindir)/sendmail
	rm -f $(DESTDIR)$(libdir)/sendmail
	rm -f $(DESTDIR)$(bindir)/mailq
	rm -f $(DESTDIR)$(bindir)/newaliases
	$(LN_S) $(bindir)/esmtp $(DESTDIR)$(sbindir)/sendmail
	$(LN_S) $(bindir)/esmtp $(DESTDIR)$(libdir)/sendmail
	$(LN_S) $(bindir)/esmtp $(DESTDIR)$(bindir)/mailq
	$(LN_S) $(bindir)/esmtp $(DESTDIR)$(bindir)/newaliases

install-data-hook:
	rm -f $(DESTDIR)$(man1dir)/sendmail.1
	rm -f $(DESTDIR)$(man1dir)/mailq.1
	rm -f $(DESTDIR)$(man1dir)/newaliases.1
	$(LN_S) esmtp.1 $(DESTDIR)$(man1dir)/sendmail.1
	$(LN_S) esmtp.1 $(DESTDIR)$(man1dir)/mailq.1
	$(LN_S) esmtp.1 $(DESTDIR)$(man1dir)/newaliases.1