Fix make target "install".
[openssl.git] / tools / Makefile.ssl
1 #
2 # SSLeay/tools/Makefile
3 #
4
5 DIR=    tools
6 TOP=    ..
7 CC=     cc
8 INCLUDES= -I.. -I../../include
9 CFLAG=-g
10 INSTALLTOP=/usr/local/ssl
11 MAKE=           make -f Makefile.ssl
12 MAKEDEPEND=     $(TOP)/util/domd $(TOP)
13 MAKEFILE=       Makefile.ssl
14
15 CFLAGS= $(INCLUDES) $(CFLAG)
16
17 GENERAL=Makefile.ssl
18 TEST=
19 APPS= c_rehash
20 MISC_APPS= c_hash c_info c_issuer c_name
21
22 all:
23
24 install:
25         @for i in $(APPS) ; \
26         do  \
27         (cp $$i $(INSTALLTOP)/bin/$$i; \
28         chmod 755 $(INSTALLTOP)/bin/$$i ); \
29         done;
30         @for i in $(MISC_APPS) ; \
31         do  \
32         (cp $$i $(OPENSSLTOP)/misc/$$i; \
33         chmod 755 $(OPENSSLTOP)/misc/$$i ); \
34         done;
35
36 files:
37         $(PERL) $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO
38
39 links:
40         @$(TOP)/util/point.sh Makefile.ssl Makefile
41
42 lint:
43
44 tags:
45
46 errors:
47
48 depend:
49
50 dclean:
51         $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
52         mv -f Makefile.new $(MAKEFILE)
53
54 clean:
55         rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
56
57 errors:
58
59 # DO NOT DELETE THIS LINE -- make depend depends on it.