-include DIRS -include ../../Rules.make all: directory debug release directory: @if [ ! -d AES/Debug ]; then \ mkdir AES/Debug;\ fi @if [ ! -d AES/Release ]; then \ mkdir AES/Release;\ fi @if [ ! -d Certificate_gen/Debug ]; then \ mkdir Certificate_gen/Debug;\ fi @if [ ! -d Certificate_gen/Release ]; then \ mkdir Certificate_gen/Release;\ fi @if [ ! -d Certificate_info/Debug ]; then \ mkdir Certificate_info/Debug;\ fi @if [ ! -d Certificate_info/Release ]; then \ mkdir Certificate_info/Release;\ fi @if [ ! -d Gen_public_key/Debug ]; then \ mkdir Gen_public_key/Debug;\ fi @if [ ! -d Gen_public_key/Release ]; then \ mkdir Gen_public_key/Release;\ fi @if [ ! -d SHA1/Debug ]; then \ mkdir SHA1/Debug;\ fi @if [ ! -d SHA1/Release ]; then \ mkdir SHA1/Release;\ fi debug: make directory for dir in $(DIRS); do \ make -C $$dir debug; \ done release: make directory for dir in $(DIRS); do \ make -C $$dir release; \ done clean: for dir in $(DIRS); do \ make -C $$dir clean; \ done install: @install -d $(DESTDIR)/usr/bin @if [ -e AES/Release/AES_256 ] ; then \ install AES/openssl_aes256_encdec.sh $(DESTDIR)/usr/bin/ ; \ install AES/Release/AES_256 $(DESTDIR)/usr/bin/ ; \ echo "AES_256 release version installed."; \ else \ echo "AES_256 release version not built - nothing to install!"; \ fi @if [ -e Certificate_gen/Release/Certificate_gen ] ; then \ install Certificate_gen/openssl_gen_cert.sh $(DESTDIR)/usr/bin/ ; \ install Certificate_gen/Release/Certificate_gen $(DESTDIR)/usr/bin/ ; \ echo "Certificate_gen release version installed."; \ else \ echo "Certificate_gen release version not built - nothing to install!"; \ fi @if [ -e Certificate_info/Release/Certificate_info ] ; then \ install Certificate_info/openssl_display_cert.sh $(DESTDIR)/usr/bin/ ; \ install Certificate_info/Release/Certificate_info $(DESTDIR)/usr/bin/ ; \ echo "Certificate_info release version installed."; \ else \ echo "Certificate_info release version not built - nothing to install!"; \ fi @if [ -e Gen_public_key/Release/Gen_publickey ] ; then \ install Gen_public_key/openssl_gen_pubkey.sh $(DESTDIR)/usr/bin/ ; \ install Gen_public_key/Release/Gen_publickey $(DESTDIR)/usr/bin/ ; \ echo "Gen_publickey release version installed."; \ else \ echo "Gen_publickey release version not built - nothing to install!"; \ fi @if [ -e SHA1/Release/SHA1_test ] ; then \ install SHA1/openssl_gen_sha1hash.sh $(DESTDIR)/usr/bin/ ; \ install SHA1/Release/SHA1_test $(DESTDIR)/usr/bin/ ; \ echo "Sha1_test release version installed."; \ else \ echo "Sha1_test release version not built - nothing to install!"; \ fi install_debug: @install -d $(DESTDIR)/usr/bin @if [ -e AES/Debug/AES_256 ] ; then \ install AES/openssl_aes256_encdec.sh $(DESTDIR)/usr/bin/ ; \ install AES/Debug/AES_256 $(DESTDIR)/usr/bin/ ; \ echo "AES_256 debug version installed."; \ else \ echo "AES_256 debug version not built - nothing to install!"; \ fi @if [ -e Certificate_gen/Debug/Certificate_gen ] ; then \ install Certificate_gen/openssl_gen_cert.sh $(DESTDIR)/usr/bin/ ; \ install Certificate_gen/Debug/Certificate_gen $(DESTDIR)/usr/bin/ ; \ echo "Certificate_gen debug version installed."; \ else \ echo "Certificate_gen debug version not built - nothing to install!"; \ fi @if [ -e Certificate_info/Debug/Certificate_info ] ; then \ install Certificate_info/openssl_display_cert.sh $(DESTDIR)/usr/bin/ ; \ install Certificate_info/Debug/Certificate_info $(DESTDIR)/usr/bin/ ; \ echo "Certificate_info debug version installed."; \ else \ echo "Certificate_info debug version not built - nothing to install!"; \ fi @if [ -e Gen_public_key/Debug/Gen_publickey ] ; then \ install Gen_public_key/openssl_gen_pubkey.sh $(DESTDIR)/usr/bin/ ; \ install Gen_public_key/Debug/Gen_publickey $(DESTDIR)/usr/bin/ ; \ echo "Gen_publickey debug version installed."; \ else \ echo "Gen_publickey debug version not built - nothing to install!"; \ fi @if [ -e SHA1/Debug/SHA1_test ] ; then \ install SHA1/openssl_gen_sha1hash.sh $(DESTDIR)/usr/bin/ ; \ install SHA1/Debug/SHA1_test $(DESTDIR)/usr/bin/ ; \ echo "Sha1_test debug version installed."; \ else \ echo "Sha1_test debug version not built - nothing to install!"; \ fi