Fool-proofing Makefiles

This commit is contained in:
Andy Polyakov
2005-05-15 22:23:26 +00:00
parent a534bb09d3
commit 81a86fcf17
51 changed files with 52 additions and 211 deletions

View File

@@ -7,10 +7,6 @@ TOP= ..
CC= cc
INCLUDES= -I$(TOP) -I../../include
CFLAG=-g
INSTALL_PREFIX=
OPENSSLDIR= /usr/local/ssl
INSTALLTOP=/usr/local/ssl
MAKE= make
MAKEDEPPROG= makedepend
MAKEDEPEND= $(TOP)/util/domd $(TOP) -MD $(MAKEDEPPROG)
MAKEFILE= Makefile
@@ -25,6 +21,7 @@ MISC_APPS= c_hash c_info c_issuer c_name
all:
install:
@[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
@for i in $(APPS) ; \
do \
(cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \