aboutsummaryrefslogtreecommitdiff
path: root/libraries/libcli/Makefile
blob: 509f493c1c4cb57c9ac2b966f1a27566fa2364fb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 $< $@