]> granicus.if.org Git - libatomic_ops/commitdiff
Fix missing output folder on making auto-generated test files (Automake)
authorIvan Maidanski <ivmai@mail.ru>
Sat, 25 Oct 2014 16:58:06 +0000 (20:58 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 25 Oct 2014 16:58:06 +0000 (20:58 +0400)
* tests/Makefile.am (test_atomic_include.h, list_atomic.c,
list_atomic.i): Add mkdir for output folder.

tests/Makefile.am

index 6bfe33c966700c7a44bf6069d09ecfe397212a97..c8812bba5ea77f69da30e5ddfcc854701c3f8049 100644 (file)
@@ -35,6 +35,7 @@ test_malloc_LDADD = $(THREADDLLIBS) \
         $(top_builddir)/src/libatomic_ops.la
 
 test_atomic_include.h: test_atomic_include.template
+       mkdir -p `dirname $@`
        sed -e s:XX::g $? > $@
        sed -e s:XX:_release:g $? >> $@
        sed -e s:XX:_acquire:g $? >> $@
@@ -45,6 +46,7 @@ test_atomic_include.h: test_atomic_include.template
        sed -e s:XX:_acquire_read:g $? >> $@
 
 list_atomic.c: list_atomic.template
+       mkdir -p `dirname $@`
        echo "#include \"atomic_ops.h\"" > $@
        sed -e s:XSIZE_::g -e s:XCTYPE:AO_t:g -e s:XX::g $? >> $@
        sed -e s:XSIZE_::g -e s:XCTYPE:AO_t:g -e s:XX:_release:g $? >> $@
@@ -93,6 +95,7 @@ list_atomic.c: list_atomic.template
        sed -e s:XSIZE:double:g -e s:XCTYPE:AO_double_t:g -e s:XX:_dd_acquire_read:g $? >> $@
 
 list_atomic.i: list_atomic.c
+       mkdir -p `dirname $@`
        $(COMPILE) $? -E > $@
 
 # Verify list_atomic.c syntax: