diff options
Diffstat (limited to 'config/Makefile')
| -rw-r--r-- | config/Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/config/Makefile b/config/Makefile new file mode 100644 index 00000000..a3326e44 --- /dev/null +++ b/config/Makefile @@ -0,0 +1,38 @@ +# +# BEGIN COPYRIGHT BLOCK +# Copyright 2001 Sun Microsystems, Inc. +# Portions copyright 1999, 2001-2003 Netscape Communications Corporation. +# 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) |
