5ebd7745b1041f2a24985625e90dcde86291bfd1
[public/netxms.git] / contrib / startup / redhat / Makefile.am
1 # Copyright (C) 2004 NetXMS Team <bugs@netxms.org>
2 #
3 # This file is free software; as a special exception the author gives
4 # unlimited permission to copy and/or distribute it, with or without
5 # modifications, as long as this notice is preserved.
6 #
7 # This program is distributed in the hope that it will be useful, but
8 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
9 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
11 EXTRA_DIST = netxmsd.in nxagentd.in nxhttpd.in
12
13 REPLACE_CMD = sed "s,~BINDIR~,$(bindir),g" < $@.in | \
14 sed "s,~LIBDIR~,$(libdir),g" > $@
15
16 all: netxmsd nxagentd nxhttpd
17
18 netxmsd: netxmsd.in
19 $(REPLACE_CMD)
20
21 nxagentd: nxagentd.in
22 $(REPLACE_CMD)
23
24 nxhttpd: nxhttpd.in
25 $(REPLACE_CMD)
26
27 clean:
28 rm -f netxmsd nxagentd nxhttpd