aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2014-11-19 22:02:17 -0600
committerBrent Cook <busterb@gmail.com>2014-11-23 08:33:56 -0600
commit2103690cbf6adfbd24b271c610087bf73e1a3056 (patch)
tree95981c5f0c19d69a9206d2ea299847a4da9d5ac9
parent1bd0c2fb2e03bcf5177a1703fe850db931210102 (diff)
downloadportable-2103690cbf6adfbd24b271c610087bf73e1a3056.tar.gz
portable-2103690cbf6adfbd24b271c610087bf73e1a3056.tar.bz2
portable-2103690cbf6adfbd24b271c610087bf73e1a3056.zip
improve readability of generated Makefile.am files
-rw-r--r--apps/Makefile.am.tpl1
-rw-r--r--crypto/Makefile.am.tpl4
-rw-r--r--ssl/Makefile.am.tpl1
-rw-r--r--tests/Makefile.am.tpl1
-rwxr-xr-xupdate.sh7
5 files changed, 10 insertions, 4 deletions
diff --git a/apps/Makefile.am.tpl b/apps/Makefile.am.tpl
index 5f1dd21..deae953 100644
--- a/apps/Makefile.am.tpl
+++ b/apps/Makefile.am.tpl
@@ -13,3 +13,4 @@ noinst_HEADERS =
13if !HAVE_STRTONUM 13if !HAVE_STRTONUM
14openssl_SOURCES += strtonum.c 14openssl_SOURCES += strtonum.c
15endif 15endif
16
diff --git a/crypto/Makefile.am.tpl b/crypto/Makefile.am.tpl
index d9ca553..5e94936 100644
--- a/crypto/Makefile.am.tpl
+++ b/crypto/Makefile.am.tpl
@@ -89,7 +89,7 @@ libcompat_la_SOURCES += compat/issetugid_win.c
89endif 89endif
90endif 90endif
91 91
92noinst_HEADERS = des/ncbc_enc.c 92noinst_HEADERS =
93noinst_HEADERS += compat/arc4random.h 93noinst_HEADERS += compat/arc4random.h
94noinst_HEADERS += compat/arc4random_freebsd.h 94noinst_HEADERS += compat/arc4random_freebsd.h
95noinst_HEADERS += compat/arc4random_linux.h 95noinst_HEADERS += compat/arc4random_linux.h
@@ -97,5 +97,7 @@ noinst_HEADERS += compat/arc4random_osx.h
97noinst_HEADERS += compat/arc4random_solaris.h 97noinst_HEADERS += compat/arc4random_solaris.h
98noinst_HEADERS += compat/arc4random_win.h 98noinst_HEADERS += compat/arc4random_win.h
99noinst_HEADERS += compat/chacha_private.h 99noinst_HEADERS += compat/chacha_private.h
100
100libcrypto_la_SOURCES = 101libcrypto_la_SOURCES =
101EXTRA_libcrypto_la_SOURCES = 102EXTRA_libcrypto_la_SOURCES =
103
diff --git a/ssl/Makefile.am.tpl b/ssl/Makefile.am.tpl
index 16caa92..01f2eaa 100644
--- a/ssl/Makefile.am.tpl
+++ b/ssl/Makefile.am.tpl
@@ -7,3 +7,4 @@ libssl_la_LDFLAGS = -version-info libssl-version
7libssl_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS) 7libssl_la_CFLAGS = $(CFLAGS) $(USER_CFLAGS)
8libssl_la_SOURCES = 8libssl_la_SOURCES =
9noinst_HEADERS = 9noinst_HEADERS =
10
diff --git a/tests/Makefile.am.tpl b/tests/Makefile.am.tpl
index ec7301c..6e10fdd 100644
--- a/tests/Makefile.am.tpl
+++ b/tests/Makefile.am.tpl
@@ -10,3 +10,4 @@ LDADD += $(top_builddir)/crypto/libcrypto.la
10TESTS = 10TESTS =
11check_PROGRAMS = 11check_PROGRAMS =
12EXTRA_DIST = 12EXTRA_DIST =
13
diff --git a/update.sh b/update.sh
index a42a2b2..3a0edbb 100755
--- a/update.sh
+++ b/update.sh
@@ -382,9 +382,13 @@ crypto_excludes=(
382 echo "noinst_HEADERS += $i" >> Makefile.am 382 echo "noinst_HEADERS += $i" >> Makefile.am
383 done 383 done
384 for subdir in $crypto_subdirs; do 384 for subdir in $crypto_subdirs; do
385 echo >> Makefile.am
386 echo "# ${subdir}" >> Makefile.am
385 for i in `ls -1 $subdir/*.c|sort`; do 387 for i in `ls -1 $subdir/*.c|sort`; do
386 if ! [[ ${crypto_excludes[*]} =~ $i ]]; then 388 if ! [[ ${crypto_excludes[*]} =~ $i ]]; then
387 echo "libcrypto_la_SOURCES += $i" >> Makefile.am 389 echo "libcrypto_la_SOURCES += $i" >> Makefile.am
390 else
391 echo "EXTRA_libcrypto_la_SOURCES += $i" >> Makefile.am
388 fi 392 fi
389 done 393 done
390 headers=`ls -1 $subdir/*.h 2>/dev/null |sort` 394 headers=`ls -1 $subdir/*.h 2>/dev/null |sort`
@@ -394,9 +398,6 @@ crypto_excludes=(
394 done 398 done
395 fi 399 fi
396 done 400 done
397 for i in "${crypto_excludes[@]}"; do
398 echo "EXTRA_libcrypto_la_SOURCES += ${i}" >> Makefile.am
399 done
400) 401)
401 402
402# conditional compiles 403# conditional compiles