Rev 29 | Rev 34 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 33 | - | 1 | PRG=filefind |
| 2 | SRC=$(PRG).pas |
||
| 3 | DIR = /var/tmp |
||
| 29 | - | 4 | |
| 33 | - | 5 | $(PRG): |
| 6 | fpc $(SRC) |
||
| 29 | - | 7 | |
| 33 | - | 8 | run: $(PRG) |
| 9 | ./$(PRG) . |
||
| 29 | - | 10 | |
| 11 | clean: |
||
| 33 | - | 12 | rm -f $(PRG) $(PRG).o |
| 29 | - | 13 | |
| 33 | - | 14 | test: $(PRG) |
| 15 | ./$(PRG) $(DIR) > result |
||
| 16 | sort result > result.sort |
||
| 17 | find $(DIR) > result2 |
||
| 18 | sort result2 > result2.sort |
||
| 29 | - | 19 | wc *.sort |
| 20 | diff *.sort |
||
| 21 | |||
| 22 | cleantest: |
||
| 33 | - | 23 | rm -f result result.sort |
| 24 | rm -f result2 result2.sort |