summaryrefslogtreecommitdiffstats
path: root/config/Makefile
blob: 3a2fbfa0a6d80a39ce9907a1be333453761c4ade (plain)
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
29
30
31
32
33
34
35
36
37
38
#
# BEGIN COPYRIGHT BLOCK
# Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
# Copyright (C) 2005 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#
#! gmake

DEPTH	= ..

HSRCS	= pathsub.h
CSRCS	= nsinstall.c pathsub.c

PLSRCS	= nfspwd.pl revdepth.pl

ifneq ($(subst /,_,$(shell uname -s)),WINNT)
PROGRAM	= nsinstall
OBJS	= $(CSRCS:.c=.o)
endif

TARGETS	= $(PROGRAM) $(PLSRCS:.pl=)

# IMPORTANT: Disable NSBUILDROOT for this directory only, otherwise we have
# a recursive rule for finding nsinstall and the perl scripts
ifdef NSBUILDROOT
override NSBUILDROOT :=
endif

include $(DEPTH)/config/rules.mk

# Redefine MAKE_OBJDIR for just this directory
define MAKE_OBJDIR
if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi
endef

export:: $(TARGETS)
install:: $(TARGETS)