Makefile

From Linuxintro
Revision as of 08:45, 6 March 2011 by imported>ThorstenStaerk (→‎See also)
cat >main.c <<EOF
#include <stdio.h>

int main()
{
  printf("hello world");
}
EOF
cat >Makefile <<EOF
all:hello

hello: main.c
        gcc main.c -o hello

install: hello
        cp hello /usr/local/bin
EOF
sed -i "s/        /\t/g" Makefile 

See also


This article is a stub and needs improvement. You can help here :)