summaryrefslogtreecommitdiffstats
path: root/bin/Makefile.in
blob: 511ad6be578e29a2c1fe5318066d97a35f35a472 (plain)
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
## Copyright (C) 1997-2001 by Henry Kilmer, Erik Sherk and Pete Whiting.
## All rights reserved.
##
## This software may be freely copied, modified and redistributed without
## fee for non-commerical purposes provided that this copyright notice is
## preserved intact on all copies and modified copies.
##
## There is no warranty or other guarantee of fitness of this software.
## It is provided solely "as is". The author(s) disclaim(s) all
## responsibility and liability with respect to this software's usage
## or its effect upon hardware, computer systems, other software, or
## anything else.

PREFIX = @prefix@

INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@

BIN_PROGS=@RD_BIN_PROGS@
BIN_DATAS=@RD_BIN_DATAS@

all:

install: all
	for prog in $(BIN_PROGS) ; do \
	    $(INSTALL) $$prog $(PREFIX)/bin; \
	done; \
	if test -f $(PREFIX)/bin/env ; then \
	    echo "WARNING: *** $(PREFIX)/bin/env exists: installing as env.new."; \
	    echo "         *** review env.new for new/deprecated switches"; \
	    $(INSTALL_DATA) env $(PREFIX)/bin/env.new; \
	else \
	    $(INSTALL_DATA) env $(PREFIX)/bin; \
	fi
# BIN_DATAS are empty at the moment.
#	for prog in $(BIN_DATAS) ; do \
#	    $(INSTALL_DATA) $$prog $(PREFIX)/bin; \
#	done; \

clean:
	rm -f Makefile env $(BIN_DATAS) $(BIN_PROGS)

distclean: clean
	rm -f config.log config.status

distdir:
	for file in Makefile.in configure.in env.in $(BIN_DATAS:=.in) ; do \
	    $(INSTALL_DATA) $$file $(distdir); \
	done
	for file in configure $(BIN_PROGS:=.in) ; do \
	    $(INSTALL) $$file $(distdir); \
	done