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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.