Fix makefile script:let makefile to be reflects directory structures