を実行するにはどうすればいいですかmakefile
? このファイルは、sts-2.1.2ファイルに含まれています。ここ:
NIST ドキュメント (セクション 5.3) によれば、 を編集する必要がありますmakefile
。
次の行を変更します:
(a) CC(ANSI C コンパイラ)
(b) ROOTDIR (プロセスの前半で指定されたルート ディレクトリ、例: rng/)
user@SC13-VM:~/Documents/sts-2.1.2$ ./makefile
./makefile: line 1: CC: command not found
./makefile: line 2: GCCFLAGS: command not found
./makefile: line 3: ROOTDIR: command not found
./makefile: line 4: ROOTDIR: command not found
./makefile: line 4: SRCDIR: command not found
./makefile: line 5: ROOTDIR: command not found
./makefile: line 5: OBJDIR: command not found
./makefile: line 6: VPATH: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
./makefile: line 8: OBJDIR: command not found
......
全部で94行あります。
それから、私はあなたの言った通りにしました:
user@SC13-VM:~/Documents/sts-2.1.2$ make makefile
make: Nothing to be done for `makefile'.
user@SC13-VM:~/Documents/sts-2.1.2$ ls
data experiments include makefile makefile~ obj src templates
user@SC13-VM:~/Documents/sts-2.1.2$ make makefile
make: Nothing to be done for `makefile'.
答え1
実行しmake
て Makefile を実行します。これは、ファイルがMakefile
配置されているディレクトリと同じディレクトリにいることを前提としています。
別のディレクトリにいる場合は、 を実行しますmake -C directory
。ここで、 はdirectory
ファイル を含むディレクトリへのパスですMakefile
。
答え2
上記の回答のコメントを読むと、あなたも私と同じ間違いを犯した可能性があります。
間違ったコマンド: make makefile
「作成するものがありません」というエラーが表示されます
正しいコマンド:make -f makefile
すでに実行可能ファイルにして、同じエラーに遭遇したことを述べておきます。また、前述のコマンドは最初はエラーなしで実行されましたが、ファイルはassess
期待どおりに表示されませんでした。もう一度実行したらうまくいきました。私は初心者なので、これについてはあまりコメントできません。