summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-12-16 20:12:11 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-12-16 20:15:04 +0100
commit64b6aec8b0cc0d625ab604dd2cf6e0a9244ed4ab (patch)
treef5559a2ffbb400e3ed7e258118fbfa2222c1701c /cfg.mk
parent2409cbb76661054addf6350cd08fc887e6157d9a (diff)
downloadgnutls-64b6aec8b0cc0d625ab604dd2cf6e0a9244ed4ab.tar.gz
bootstrap will initialize the submodules
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk15
1 files changed, 10 insertions, 5 deletions
diff --git a/cfg.mk b/cfg.mk
index 63500714d5..59c93e35aa 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -75,7 +75,12 @@ update-po: refresh-po
config:
./configure $(CFGFLAGS)
-bootstrap: autoreconf
+.submodule.stamp:
+ git submodule init
+ git submodule update
+ touch $@
+
+bootstrap: autoreconf .submodule.stamp
# The only non-lgpl modules used are: gettime progname timespec. Those
# are not used (and must not be used) in the library)
@@ -211,28 +216,28 @@ lib/accelerated/x86/files.mk: $(ASM_SOURCES_ELF)
mv $@.tmp $@
# Appro's code
-lib/accelerated/x86/elf/%.s: devel/perlasm/%.pl
+lib/accelerated/x86/elf/%.s: .submodule.stamp devel/perlasm/%.pl
cat $^.license > $@
perl $< elf >> $@
echo "" >> $@
echo ".section .note.GNU-stack,\"\",%progbits" >> $@
sed -i 's/OPENSSL_ia32cap_P/_gnutls_x86_cpuid_s/g' $@
-lib/accelerated/x86/coff/%-x86.s: devel/perlasm/%-x86.pl
+lib/accelerated/x86/coff/%-x86.s: .submodule.stamp devel/perlasm/%-x86.pl
cat $^.license > $@
perl $< coff >> $@
echo "" >> $@
echo ".section .note.GNU-stack,\"\",%progbits" >> $@
sed -i 's/OPENSSL_ia32cap_P/_gnutls_x86_cpuid_s/g' $@
-lib/accelerated/x86/coff/%-x86_64.s: devel/perlasm/%-x86_64.pl
+lib/accelerated/x86/coff/%-x86_64.s: .submodule.stamp devel/perlasm/%-x86_64.pl
cat $^.license > $@
perl $< mingw64 >> $@
echo "" >> $@
echo ".section .note.GNU-stack,\"\",%progbits" >> $@
sed -i 's/OPENSSL_ia32cap_P/_gnutls_x86_cpuid_s/g' $@
-lib/accelerated/x86/macosx/%.s: devel/perlasm/%.pl
+lib/accelerated/x86/macosx/%.s: .submodule.stamp devel/perlasm/%.pl
cat $^.license > $@
perl $< macosx >> $@
echo "" >> $@