Thanks! I just wanted a makefile for convenience, but somehow the same command works outside and not inside the makefile.