Rename INSTALL_PREFIX to DESTDIR, remove option --install_prefix
[openssl.git] / tools / Makefile.in
index d4752f833b9b2421116f07789cd75cbcb7883350..7b4f14e7e64c6888fd056779e5a213eb226f3612 100644 (file)
@@ -15,55 +15,51 @@ GENERAL=Makefile
 APPS= c_rehash
 MISC_APPS= c_hash c_info c_issuer c_name
 
-all:
+all: apps
+
+apps: $(APPS)
 
 install:
        @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
        @for i in $(APPS) ; \
        do  \
-       (cp $$i $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
-       chmod 755 $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new; \
-       mv -f $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i.new $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i ); \
+       (cp $$i $(DESTDIR)$(INSTALLTOP)/bin/$$i.new; \
+       chmod 755 $(DESTDIR)$(INSTALLTOP)/bin/$$i.new; \
+       mv -f $(DESTDIR)$(INSTALLTOP)/bin/$$i.new $(DESTDIR)$(INSTALLTOP)/bin/$$i ); \
        done;
        @for i in $(MISC_APPS) ; \
        do  \
-       (cp $$i $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
-       chmod 755 $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new; \
-       mv -f $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i.new $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i ); \
+       (cp $$i $(DESTDIR)$(OPENSSLDIR)/misc/$$i.new; \
+       chmod 755 $(DESTDIR)$(OPENSSLDIR)/misc/$$i.new; \
+       mv -f $(DESTDIR)$(OPENSSLDIR)/misc/$$i.new $(DESTDIR)$(OPENSSLDIR)/misc/$$i ); \
        done;
 
 uninstall:
        @for i in $(APPS) ; \
        do  \
-               echo $(RM) $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \
-               $(RM) $(INSTALL_PREFIX)$(INSTALLTOP)/bin/$$i; \
+               echo $(RM) $(DESTDIR)$(INSTALLTOP)/bin/$$i; \
+               $(RM) $(DESTDIR)$(INSTALLTOP)/bin/$$i; \
        done;
        @for i in $(MISC_APPS) ; \
        do  \
-               echo $(RM) $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \
-               $(RM) $(INSTALL_PREFIX)$(OPENSSLDIR)/misc/$$i; \
+               echo $(RM) $(DESTDIR)$(OPENSSLDIR)/misc/$$i; \
+               $(RM) $(DESTDIR)$(OPENSSLDIR)/misc/$$i; \
        done;
 
 files:
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
 
-lint:
-
-tags:
-
 errors:
 
-update: depend
-
 depend:
 
-dclean:
-       $(PERL) -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new
-       mv -f Makefile.new $(MAKEFILE)
-
 clean:
        rm -f *.o *.obj lib tags core .pure .nfs* *.old *.bak fluff
 
 errors:
 
+c_rehash: c_rehash.in
+       $(PERL) -I$(TOP) -Mconfigdata $(TOP)/util/dofile.pl -otools/Makefile c_rehash.in > c_rehash.new
+       mv c_rehash.new c_rehash
+
 # DO NOT DELETE THIS LINE -- make depend depends on it.