Skip to content

Commit c0552c3

Browse files
committed
Fix symlinking error on repeated builds
1 parent b945952 commit c0552c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

testCodes/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ all: $(OBJ) $(PROG) kernels
2828

2929

3030
kernels:
31-
ln -s $(SAPPOROPATH)/CUDAKernels/ CUDA/
31+
rm -f CUDA && ln -s $(SAPPOROPATH)/CUDAKernels CUDA
3232

3333
#$(PROG): $(OBJ)
3434
# $(CXX) $(LDFLAGS) $^ -o $@ -L $(SAPPOROPATH) -lsapporo
@@ -63,7 +63,7 @@ test_integrator_cuda : test_integrator.o
6363

6464

6565
clean:
66-
/bin/rm -rf *.o *.ptx *.a $(PROG)
66+
/bin/rm -rf *.o *.ptx *.a $(PROG) CUDA
6767

6868

6969
$(OBJ): $(SAPPOROPATH)/$(SAPLIB)

0 commit comments

Comments
 (0)