From aa90cb43b370ee219e1e14ad774b662a53178727 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sat, 25 Jun 2016 00:22:11 -0400 Subject: Finish unwinding subrepository hairball: VPATH setup. --- libraries/libcli/Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 libraries/libcli/Makefile (limited to 'libraries/libcli') 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 $< $@ -- cgit v1.2.3