pthreads/{hello_i_of_w_shr → hello_ordered_wait}/Makefile RENAMED
@@ -1,8 +1,12 @@
1
- APPNAME=hello_i_of_w_shr
2
 
3
  $(APPNAME): $(APPNAME).c
4
  cc -g -Wall -Wextra $(APPNAME).c -o $(APPNAME) -pthread
5
 
 
 
 
 
6
  .PHONY: clean
7
  clean:
8
  rm -f $(APPNAME)
1
+ APPNAME=$(shell basename $(shell pwd))
2
 
3
  $(APPNAME): $(APPNAME).c
4
  cc -g -Wall -Wextra $(APPNAME).c -o $(APPNAME) -pthread
5
 
6
+ .PHONY: gitignore
7
+ gitignore:
8
+ echo $(APPNAME) > .gitignore
9
+
10
  .PHONY: clean
11
  clean:
12
  rm -f $(APPNAME)