2020년 9월 11일 금요일

Makefile

Makefile 에서 파일의 존재 여부 판단 예제
줄 나눔이 될 때 '\' 넣어주는 것을 제외하고는 shell에서 하는 거랑 동일.

all:
    @if [ -l link_name ] ; then \
        echo "link exists"; \
    fi

all: 
    @if [ -l link_name ] ; then echo "link exists"; fi

디렉토리
if [ -d dir_name ]

파일
if [ -f file_name ]

댓글 없음:

댓글 쓰기

우분투 NFS 설정

* 서버 설정 apt-get install nfs-common nfs-kernel-server rpcbind /etc/exports /home/xyz 192.168.0.X(rw,sync,no_root_squash,no_subtree_check)...