]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
bootstrap will initialize the submodules
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 16 Dec 2013 19:12:11 +0000 (20:12 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 16 Dec 2013 19:15:04 +0000 (20:15 +0100)
.gitignore
cfg.mk

index 2deb0cd33a3a5d779c344d01ecf690bae67ae726..78caae63c4e2837eaa3c8c1206242de33f0a5668 100644 (file)
@@ -698,3 +698,4 @@ doc/parse-datetime.texi
 tests/fips-test
 tests/global-init
 tests/mini-global-load
+.submodule.stamp
diff --git a/cfg.mk b/cfg.mk
index 63500714d5a7552aebb78dd79f1bfc82d5f24bed..59c93e35aac9cbb08163d425aff416219c5b09f3 100644 (file)
--- 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 "" >> $@