Refactor file writing - introduce template driven file writing
[openssl.git] / tools / Makefile.in
index d4752f833b9b2421116f07789cd75cbcb7883350..b52b45f7d3b8c62c752a81425a53cf8ddd81bf56 100644 (file)
@@ -15,7 +15,9 @@ GENERAL=Makefile
 APPS= c_rehash
 MISC_APPS= c_hash c_info c_issuer c_name
 
 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...
 
 install:
        @[ -n "$(INSTALLTOP)" ] # should be set by top Makefile...
@@ -47,23 +49,17 @@ uninstall:
 files:
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
 
 files:
        $(PERL) $(TOP)/util/files.pl Makefile >> $(TOP)/MINFO
 
-lint:
-
-tags:
-
 errors:
 
 errors:
 
-update: depend
-
 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:
 
 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 < c_rehash.in > c_rehash.new
+       mv c_rehash.new c_rehash
+
 # DO NOT DELETE THIS LINE -- make depend depends on it.
 # DO NOT DELETE THIS LINE -- make depend depends on it.