File: Makefile.am

package info (click to toggle)
echoping 6.0.2-10
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 9,296 kB
  • ctags: 515
  • sloc: sh: 8,951; ansic: 3,352; makefile: 170
file content (83 lines) | stat: -rw-r--r-- 2,527 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
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
## Process this file with automake to produce Makefile.in

# $Id: Makefile.am 399 2007-04-04 21:16:59Z bortz $

bin_PROGRAMS = echoping
man_MANS = echoping.1
echoping_SOURCES = echoping.c error.c readline.c writen.c util.c http.c icp.c HTParse.c echoping.h icp.h HTParse.h smtp.c
pkginclude_HEADERS = echoping.h compilation.h
echoping_LDADD = 
echoping_LDFLAGS = -export-dynamic
DOCS=DETAILS PLUGINS
SUBDIRS=plugins
SVN_REPO=http://echoping.svn.sourceforge.net/svnroot/echoping

TESTS=test-echoping-local test-echoping-remote 
MORE_TESTS=test-echoping-proxy test-echoping-icp test-echoping-crypto test-echoping-tos test-echoping-ipv6 test-echoping-idn test-echoping-plugins

test: tests
tests: check

# TODO: raise a warning at install-time when the prefix changes (just
# a warning because we do not want to prevent Debian packages for
# being built), otherwise, the plugins will not be found.

fulltest: test moretest

moretests: moretest
moretest: $(MORE_TESTS)
	@failed=0; all=0; \
	srcdir=$(srcdir); export srcdir; \
	for tst in $(MORE_TESTS); do \
	  if test -f $$tst; then dir=.; \
	  else dir="$(srcdir)"; fi; \
	  if $(TESTS_ENVIRONMENT) $$dir/$$tst; then \
	    all=`expr $$all + 1`; \
	    echo "PASS: $$tst"; \
	  elif test $$? -ne 77; then \
	    all=`expr $$all + 1`; \
	    failed=`expr $$failed + 1`; \
	    echo "FAIL: $$tst"; \
	  fi; \
	done; \
	if test "$$failed" -eq 0; then \
	  banner="All $$all tests passed"; \
	else \
	  banner="$$failed of $$all tests failed"; \
	fi; \
	dashes=`echo "$$banner" | sed s/./=/g`; \
	echo "$$dashes"; \
	echo "$$banner"; \
	echo "$$dashes"; \
	test "$$failed" -eq 0

internal_test: internal_tests
internal_tests: internal_tests.o $(echoping_OBJECTS)
	$(CC) $(LDFLAGS) -o $@ $< util.o 
	./internal_tests

debug: 
	$(MAKE) DEBUG=1 CFLAGS='-g -O0'

upload: 
	@echo "Have you updated configure-common.ac and ChangeLog and committed?"
	@echo "Then, have you ran \"make distcheck\" and tagged everything?"
	@echo "[Tag is 'svn copy -m \"TAG Release x.y.z\" ${SVN_REPO}/trunk ${SVN_REPO}/tags/RELEASE_x_y_z']"
	@echo "If so, make upload-force"

upload-force: dist
	scp $(distdir).tar.gz  bortzmeyer@ftp.internatif.org:'~ftp/pub/unix/echoping'
	rm -f upload.log
	ncftpput -d upload.log upload.sourceforge.net /incoming $(distdir).tar.gz

realclean: distclean
	rm -rf *~ autom4te.cache

EXTRA_DIST = $(man_MANS) $(TESTS) $(DOCS) $(MORE_TESTS)

## Otherwise, we depend on GNUmake, but for Subversion users, not for regular
## tarball users
##AUTOMAKE_OPTIONS = no-dependencies