summaryrefslogtreecommitdiffstats
path: root/c/src/librpc/include/rpc/Makefile.am
blob: 96ba43f51a822cfb1a224ba96d1a55a3515492e5 (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
27
28
##
## $Id$
##

AUTOMAKE_OPTIONS = foreign 1.4

include_rpcdir = $(includedir)/rpc

H_FILES = auth.h auth_des.h auth_unix.h clnt.h des.h des_crypt.h pmap_clnt.h \
    pmap_prot.h pmap_rmt.h rpc.h rpc_com.h rpc_msg.h svc.h svc_auth.h \
    types.h xdr.h

if HAS_NETWORKING
include_rpc_HEADERS = $(H_FILES)
PREINSTALL_FILES += $(PROJECT_INCLUDE)/rpc \
    $(H_FILES:%=$(PROJECT_INCLUDE)/rpc/%)

$(PROJECT_INCLUDE)/rpc:
	@$(mkinstalldirs) $@
$(PROJECT_INCLUDE)/rpc/%.h: %.h
	$(INSTALL_DATA) $< $@
endif

all-local: $(PREINSTALL_FILES)

EXTRA_DIST = $(H_FILES)

include $(top_srcdir)/../../../automake/local.am