make-install-support-for-transarc-and-prefix-style-universes-20010907
[openafs.git] / src / libuafs / MakefileProto.DUX.in
index fd0510c..24f3bfc 100644 (file)
@@ -8,17 +8,27 @@
 # MakefileProto for Solaris systems
 #
 
-DESTDIR=@DESTDIR@
-SRCDIR=@SRCDIR@
+DEST=@DEST@
 TOP_SRCDIR=@TOP_SRCDIR@
+TOP_INCDIR=@TOP_INCDIR@
+TOP_LIBDIR=@TOP_LIBDIR@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+bindir=@bindir@
+sbindir=@sbindir@
+libexecdir=@libexecdir@
+libdir=@libdir@
+includedir=@includedir@
+mandir=@mandir@
+afssrvbindir=@afssrvbindir@
+afssrvsbindir=@afssrvsbindir@
+afssrvlibexecdir=@afssrvlibexecdir@
 SYS_NAME=@AFS_SYSNAME@
 
 DBUG=-O
 
 include ../config/Makefile.${SYS_NAME}
 
-MKDIR_IF_NEEDED=[ -d $$1 ] || mkdir -p $$1
-
 # System specific build commands and flags
 DEFINES=-DAFSDEBUG -DKERNEL -DUKERNEL -DAFS -DVICE -D_NO_PROTO -DOSF
 KOPTS=
@@ -38,7 +48,7 @@ LIBAFSWEBKRB = nsafs.krb.so
 include Makefile.common
 
 setup_common:
-       -rm -f  h net netinet rpc ufs nfs  machine sys inet nsapi
+       -$(RM) -f  h net netinet rpc ufs nfs  machine sys inet nsapi
        -ln -s /usr/include/sys h
        -ln -s /usr/include/net net
        -ln -s /usr/include/netinet netinet
@@ -49,18 +59,22 @@ setup_common:
        -ln -s /usr/include/ufs ufs
        -ln -s $(NS_INCL) nsapi
 
-setup_uafs: setup_common
-       set UAFS; $(MKDIR_IF_NEEDED)
-       -rm -f UAFS/Makefile UAFS/Makefile.common
+setup_uafs: UAFS setup_common
+       -$(RM) -f UAFS/Makefile UAFS/Makefile.common
        ln -s ../Makefile UAFS/Makefile
        ln -s ../Makefile.common UAFS/Makefile.common
 
-setup_nsafs: setup_common
-       set AFSWEB; $(MKDIR_IF_NEEDED)
-       -rm -f AFSWEB/Makefile AFSWEB/Makefile.common
+UAFS:
+       mkdir -p $@
+
+setup_nsafs: AFSWEB setup_common
+       -$(RM) -f AFSWEB/Makefile AFSWEB/Makefile.common
        ln -s ../Makefile AFSWEB/Makefile
        ln -s ../Makefile.common AFSWEB/Makefile.common
 
+AFSWEB: 
+       mkdir -p $@
+
 UAFS/$(LIBUAFS): setup_uafs
        cd UAFS; \
        $(MAKE) $(LIBUAFS)
@@ -76,14 +90,14 @@ AFSWEB/$(LIBAFSWEBKRB): setup_nsafs
 # Below this line are targets when in the COMMON directory:
 
 $(LIBUAFS): $(UAFSOBJ)
-       -rm -f $(LIBUAFS)
+       -$(RM) -f $(LIBUAFS)
        $(AR) $(ARFLAGS) $(LIBUAFS) $(UAFSOBJ)
        ranlib $(LIBUAFS)
 
 $(LIBAFSWEB): $(AFSWEBOBJ) ${DES}/libdes.a
-       -rm -f $(LIBAFSWEB)
+       -$(RM) -f $(LIBAFSWEB)
        ld -all -shared -expect_unresolved "*" $(LIBAFSWEB) $(AFSWEBOBJ) ${DES}/libdes.a $(WEBLIBS)
 
 $(LIBAFSWEBKRB): $(AFSWEBOBJKRB) ${DES}/libdes.a
-       -rm -f $(LIBAFSWEBKRB)
+       -$(RM) -f $(LIBAFSWEBKRB)
        ld -all -shared -expect_unresolved "*" $(LIBAFSWEBKRB) $(AFSWEBOBJKRB) ${DES}/libdes.a $(WEBLIBS)