Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
6 | ls | 1 | # |
2 | # gmake |
||
3 | # setp PROG variabele in calling file |
||
4 | # |
||
5 | |||
6 | .PHONY = clean run |
||
7 | |||
8 | $(PROG).class: $(PROG).java |
||
9 | @echo "INFO: Compiling $^ to $@" |
||
10 | javac $^ |
||
11 | |||
12 | clean: |
||
13 | @echo "INFO: Cleaning $(PROG)" |
||
14 | rm -f $(PROG).class |
||
15 | |||
16 | run: $(PROG).class |
||
17 | @echo "INFO: Running $(PROG)" |
||
18 | java $(PROG) |
||
19 | |||
20 | all: |
||
21 | echo "$(PROG)" |