diff options
author | Rob Austein <sra@hactrn.net> | 2016-06-25 00:22:11 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-06-25 00:22:11 -0400 |
commit | aa90cb43b370ee219e1e14ad774b662a53178727 (patch) | |
tree | 7f2452ccf228ff39e14d612613ec8fbd22fe11e2 /libraries/libcli | |
parent | 41d765504350626b9c886c0e92f768184b457a54 (diff) |
Finish unwinding subrepository hairball: VPATH setup.
Diffstat (limited to 'libraries/libcli')
-rw-r--r-- | libraries/libcli/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libraries/libcli/Makefile b/libraries/libcli/Makefile new file mode 100644 index 0000000..509f493 --- /dev/null +++ b/libraries/libcli/Makefile @@ -0,0 +1,26 @@ +ifndef CRYPTECH_ROOT + CRYPTECH_ROOT := $(abspath ../../../..) +endif + +REPO := ${CRYPTECH_ROOT}/user/ft/libcli + +vpath %.c ${REPO} +vpath %.h ${REPO} + +include ${REPO}/Makefile + +# Kludge alert: +# +# We really should teach Makefiles that need libcli.h to look in the +# right place, but we don't want to wire the current location of +# libcli into too many Makefiles, since we intend to move it soon. +# +# So, for the moment, we just copy libcli.h. Clean this up after the +# the repository moves (and maybe do something about the general +# assumption that header files and libraries always live in the same +# directory, that's wrong in a VPATH-based world). + +all: $(abspath .)/libcli.h + +$(abspath .)/libcli.h: ${REPO}/libcli.h + cp -p $< $@ |