-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
43 lines (36 loc) · 811 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
JAVAC=javac
JAVA=java
JFLAGS = -d build/ -s src/
RFLAGS = -cp build
XARGS=xargs $(JAVAC)
RUN=Gestock
all:
@cd src; find org -name "*.java" | $(XARGS)
@cd src; find com -name "*.java" | $(XARGS)
@cd src; find gestock -name "*.java" | $(XARGS)
@echo ""
@echo "Vous devriez executer : "
@echo "make install"
@echo ""
run: install
./$(RUN)
errors:
@cd src; find gestock -name "*.java" | $(XARGS) -Xlint
@cd src; find org -name "*.java" | $(XARGS)
@cd src; find com -name "*.java" | $(XARGS)
install:
@echo "#!/bin/bash" > $(RUN);
@echo "" >> $(RUN);
@echo "java -cp src gestock.Gestock">>$(RUN);
@chmod +x $(RUN)
@echo ""
@echo "Vous devriez executer : "
@echo "./$(RUN)"
@echo ""
update:
git pull origin master
push:
git add .
git status
git commit -m "$$$$"
git push origin master