Changeset 4f18de3 for src/tests


Ignore:
Timestamp:
Jul 28, 2018, 5:41:20 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
Children:
a8a7612
Parents:
e10537a9
Message:

Tentative fix for extensionless headers getting deleted

Location:
src/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/tests/Makefile.am

    re10537a9 r4f18de3  
    7979        @+${TEST_PY} --debug=${debug} -Iconcurrent
    8080
     81# SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated
     82# however, here it is more complicated because it must match the dependencies exactly
     83# depencies seem to have the absolute path to the build directory and relative path
     84# to the headers from there
     85headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*")
     86headers_real = $(shell realpath --relative-to=$(top_builddir) $(headers))
     87headers_deps = $(addprefix $(abs_top_builddir)/, $(headers))
     88$(headers_deps) :
     89        echo "Dummy rule, should never be called"
     90
     91# implicit rule so not all test require a rule
    8192% : %.c $(CC)
    8293        $(COMPILE) $(abspath ${<}) -o ${@}
  • src/tests/Makefile.in

    re10537a9 r4f18de3  
    309309fstream_test_SOURCES = fstream_test.c
    310310avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c
     311
     312# SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated
     313# however, here it is more complicated because it must match the dependencies exactly
     314# depencies seem to have the absolute path to the build directory and relative path
     315# to the headers from there
     316headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*")
     317headers_real = $(shell realpath --relative-to=$(top_builddir) $(headers))
     318headers_deps = $(addprefix $(abs_top_builddir)/, $(headers))
    311319all: all-am
    312320
     
    626634concurrency :
    627635        @+${TEST_PY} --debug=${debug} -Iconcurrent
    628 
     636$(headers_deps) :
     637        echo "Dummy rule, should never be called"
     638
     639# implicit rule so not all test require a rule
    629640% : %.c $(CC)
    630641        $(COMPILE) $(abspath ${<}) -o ${@}
Note: See TracChangeset for help on using the changeset viewer.