Changeset 83

Show
Ignore:
Timestamp:
06/01/07 15:15:51 (2 years ago)
Author:
csellers
Message:

modification to Makefile to detect 32/64 bit and install accordingly

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RHEL5/pam_tally3/Makefile

    r77 r83  
    1111 
    1212LIB_SECURITY=/lib/security 
     13LIB64_SECURITY=/lib64/security 
    1314SBIN=/sbin 
    1415DOC=/usr/share/doc/pam_tally3 
     16ARCH=$(shell uname -i) 
    1517 
    1618all:    $(PAM_MODULE) $(APP) 
     
    2830        rm -f *.o $(PAM_MODULE) $(APP) 
    2931 
    30 install: 
     32install: install$(ARCH) 
     33 
     34installi386: 
    3135        test -d $(DESTDIR)$(LIB_SECURITY) || install -m 755 -d $(DESTDIR)$(LIB_SECURITY) 
    3236        test -d $(DESTDIR)$(SBIN) || install -m 755 -d $(DESTDIR)$(SBIN) 
     
    3539        install -s -m755 $(APP) $(DESTDIR)$(SBIN) 
    3640        install  -m644 doc/* $(DESTDIR)$(DOC) 
     41 
     42installx86_64: 
     43        test -d $(DESTDIR)$(LIB64_SECURITY) || install -m 755 -d $(DESTDIR)$(LIB64_SECURITY) 
     44        test -d $(DESTDIR)$(SBIN) || install -m 755 -d $(DESTDIR)$(SBIN) 
     45        test -d $(DESTDIR)$(DOC) || install -m 755 -d $(DESTDIR)$(DOC) 
     46        install -s -m755 $(PAM_MODULE) $(DESTDIR)$(LIB64_SECURITY) 
     47        install -s -m755 $(APP) $(DESTDIR)$(SBIN) 
     48        install  -m644 doc/* $(DESTDIR)$(DOC)