Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'master' of github.com:liweinan/recipies

  • Loading branch information...
commit 4c9fa08123c6589b804c7f233073d4e00e6bd2bb 2 parents 31daa72 + b17e2c8
@liweinan authored
View
4 .gitignore
@@ -2,4 +2,6 @@ tmp
.DS_Store
*.o
*.exe
-lex.yy.c
+*~
+lex.yy.c
+
View
4 bash/README.md
@@ -347,3 +347,7 @@ echo -e will evaluate the string:
---
+ weli@power:~$ ls a?(.gif)
+ a.gif
+ weli@power:~$ ls a+(.gif)
+ a.gif a.gif.gif
View
7 make/ch03/Makefile
@@ -0,0 +1,7 @@
+hello.o: hello.c /usr/include/stdio.h /usr/include/sys/cdefs.h \
+ /usr/include/sys/_symbol_aliasing.h \
+ /usr/include/sys/_posix_availability.h /usr/include/Availability.h \
+ /usr/include/AvailabilityInternal.h /usr/include/_types.h \
+ /usr/include/sys/_types.h /usr/include/machine/_types.h \
+ /usr/include/i386/_types.h /usr/include/secure/_stdio.h \
+ /usr/include/secure/_common.h
View
6 make/ch03/hello.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+ printf("Hello, world!");
+}
+
View
6 make/ch05/Makefile
@@ -0,0 +1,6 @@
+_Q=@
+
+ls-file:
+ $(_Q) ls -l
+
+.PHONY: ls-file
View
3  make/multi/Makefile
@@ -0,0 +1,3 @@
+.PHONY: a
+a:
+ ${MAKE} --directory=$@
View
3  make/multi/a/Makefile
@@ -0,0 +1,3 @@
+.PHONY: out
+out:
+ touch out
View
6 make/vars/Makefile
@@ -0,0 +1,6 @@
+default: pre pre2 pre2
+ @echo $+
+ @echo $<
+ @echo $^
+ @echo $@
+ @echo $?
View
0  make/vars/pre
No changes.
View
0  make/vars/pre2
No changes.
View
9 make/vpath/Makefile
@@ -0,0 +1,9 @@
+vpath %.c src
+vpath %.h include
+
+main: hello.c main.c hello.h
+ gcc -I include $^ -o $@
+
+.PHONY: clean
+clean:
+ rm -rf main
View
5 make/vpath/include/hello.h
@@ -0,0 +1,5 @@
+#ifndef _HELLO_H_
+#define _HELLO_H_
+
+extern void say_hello();
+#endif
View
5 make/vpath/src/hello.c
@@ -0,0 +1,5 @@
+#include <stdio.h>
+
+say_hello() {
+ printf("Hello, world!");
+}
View
6 make/vpath/src/main.c
@@ -0,0 +1,6 @@
+#include <hello.h>
+
+int main() {
+ say_hello();
+ return 0;
+}
Please sign in to comment.
Something went wrong with that request. Please try again.