Difference between revisions of "Makefile"
From Linuxintro
imported>ThorstenStaerk |
imported>ThorstenStaerk |
||
Line 13: | Line 13: | ||
hello: main.c | hello: main.c | ||
gcc main.c -o hello | gcc main.c -o hello | ||
+ | |||
+ | install: hello | ||
+ | cp hello /usr/local/bin | ||
EOF | EOF | ||
sed -i "s/ /\t/g" Makefile | sed -i "s/ /\t/g" Makefile |
Revision as of 16:04, 6 February 2011
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