| 1234567891011121314151617181920212223242526272829303132333435363738 |
- #
- # 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)
|