Makefile 796 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #
  2. # BEGIN COPYRIGHT BLOCK
  3. # Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  4. # Copyright (C) 2005 Red Hat, Inc.
  5. # All rights reserved.
  6. # END COPYRIGHT BLOCK
  7. #
  8. #! gmake
  9. DEPTH = ..
  10. HSRCS = pathsub.h
  11. CSRCS = nsinstall.c pathsub.c
  12. PLSRCS = nfspwd.pl revdepth.pl
  13. ifneq ($(subst /,_,$(shell uname -s)),WINNT)
  14. PROGRAM = nsinstall
  15. OBJS = $(CSRCS:.c=.o)
  16. endif
  17. TARGETS = $(PROGRAM) $(PLSRCS:.pl=)
  18. # IMPORTANT: Disable NSBUILDROOT for this directory only, otherwise we have
  19. # a recursive rule for finding nsinstall and the perl scripts
  20. ifdef NSBUILDROOT
  21. override NSBUILDROOT :=
  22. endif
  23. include $(DEPTH)/config/rules.mk
  24. # Redefine MAKE_OBJDIR for just this directory
  25. define MAKE_OBJDIR
  26. if test ! -d $(@D); then rm -rf $(@D); mkdir $(@D); fi
  27. endef
  28. export:: $(TARGETS)
  29. install:: $(TARGETS)