Changeset a4248de1


Ignore:
Timestamp:
Jul 30, 2018, 10:51:33 AM (6 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:
04e367c, 0dc3ac3, 944a90f, 95b1e28
Parents:
02559df
Message:

New tentative for headers using wildcard characters in rules

Location:
src/tests
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/tests/Makefile.am

    r02559df ra4248de1  
    8080
    8181# 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
     82# however, here it is more complicated because it must match the dependencies based on how
     83# they are generated by gcc
    8584headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*")
    86 headers_real = $(shell realpath --relative-to=$(top_builddir) $(headers))
    87 headers_deps = $(addprefix $(abs_top_builddir)/, $(headers))
     85headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers))
     86headers_deps = $(addprefix %/, $(headers_real))
    8887$(headers_deps) :
    8988        echo "Dummy rule, should never be called"
    9089
     90# %/stdlib:
     91#       echo "Dummy rule, should never be called"
     92
    9193# implicit rule so not all test require a rule
    9294% : %.c $(CC)
     95        echo $(headers_deps)
    9396        $(COMPILE) $(abspath ${<}) -o ${@}
    9497
  • src/tests/Makefile.in

    r02559df ra4248de1  
    315315# to the headers from there
    316316headers = $(shell find $(top_srcdir)/src/libcfa -type f ! -name "*.*")
    317 headers_real = $(shell realpath --relative-to=$(top_builddir) $(headers))
    318 headers_deps = $(addprefix $(abs_top_builddir)/, $(headers))
     317headers_real = $(shell realpath --relative-to=$(top_srcdir)/src/libcfa $(headers))
     318headers_deps = $(addprefix %/, $(headers_real))
    319319all: all-am
    320320
     
    637637        echo "Dummy rule, should never be called"
    638638
     639# %/stdlib:
     640#       echo "Dummy rule, should never be called"
     641
    639642# implicit rule so not all test require a rule
    640643% : %.c $(CC)
     644        echo $(headers_deps)
    641645        $(COMPILE) $(abspath ${<}) -o ${@}
    642646
  • src/tests/test.py

    r02559df ra4248de1  
    219219        make('clean', redirects = '> /dev/null 2>&1')
    220220
    221         # automake doesn't clean the dependencies so do it by hand
    222         sh("find %s -type d -name .deps -delete" % settings.BUIDDIR)
    223 
    224221        # create the executor for our jobs and handle the signal properly
    225222        pool = setupPool(jobs)
Note: See TracChangeset for help on using the changeset viewer.