File: Makefile.am

package info (click to toggle)
siege 4.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,676 kB
  • sloc: ansic: 13,015; sh: 9,149; makefile: 160; php: 142; perl: 11
file content (83 lines) | stat: -rw-r--r-- 2,784 bytes parent folder | download | duplicates (4)
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
##
## doc/Makefile.am
##
## Copyright (C) 2000-2010 by
## Jeffrey Fulmer - <jeff@joedog.org>, et al.
## This file is distributed as part of Siege
##
## This program 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 2 of the License, or
## (at your option) any later version.
##
## This program 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 this program; if not, write to the Free Software Foundation, Inc.
## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
##

AUTOMAKE_OPTIONS  =    foreign no-dependencies 

man_MANS          =    \
siege.1                \
siege.config.1         \
bombardment.1          \
siege2csv.1

man_SOURCE        =    \
siege.pod              \
siege.config.pod       \
bombardment.pod        \
siege2csv.pod

man_SHELLS        =    \
siege.1.in             \
siege.config.1.in      \
bombardment.1.in       \
siege2csv.1.in         

EXTRA_DIST        =    $(man_SOURCE) $(man_SHELLS) urls.txt siegerc.in

DISTCLEANFILES    =    siegerc $(man_MANS) $(man_SHELLS)

SIEGERC           =    $(sysconfdir)/siegerc

URLSTXT           =    $(sysconfdir)/urls.txt

install-exec-hook: 
	@if test -f $(DESTDIR)$(SIEGERC); then \
	  if cmp -s $(srcdir)/siegerc $(DESTDIR)$(SIEGERC); then echo ""; \
	    else \
	    echo ' $(INSTALL_DATA) $(srcdir)/siegerc $(DESTDIR)$(SIEGERC).new'; \
	    $(INSTALL_DATA) $(srcdir)/siegerc $(DESTDIR)$(SIEGERC).new; \
	    echo "#####################################################"; \
	    echo "WARNING: File $(SIEGERC) already exists."; \
	    echo "         A new resource file has been installed as"; \
	    echo "         $(SIEGERC).new. You may want to"; \
	    echo "         consider using the newer version in order to"; \
	    echo "         take advantage of any new features."; \
	    echo "#####################################################"; \
	  fi; \
	else \
	  $(mkinstalldirs) $(DESTDIR)$(sysconfdir); \
	  $(INSTALL_DATA) $(srcdir)/siegerc $(DESTDIR)$(SIEGERC); \
	fi 
	@if test -f $(DESTDIR)$(URLSTXT); then \
	  if cmp -s $(srcdir)/siegerc $(DESTDIR)$(URLSTXT); then echo ""; \
	    else \
	    echo "WARNING: File $(DESTDIR)$(URLSTXT) already exists."; \
	    echo "         It was NOT replaced with this installation."; \
	  fi; \
	else \
	  $(mkinstalldirs) $(DESTDIR)$(sysconfdir); \
	  $(INSTALL_DATA) $(srcdir)/urls.txt $(DESTDIR)$(URLSTXT); \
	fi 


uninstall:
	rm -f $(DESTDIR)$(SIEGERC)