/filefind/C/Makefile |
---|
1,7 → 1,6 |
PRG=filefind |
SRC=$(PRG).c |
DIR=/var/tmp |
.PHONY: clean test cleantest |
$(PRG): checkfiles.h $(SRC) |
$(CC) $@.c -o $@ |
9,7 → 8,7 |
clean: |
rm -f $(PRG) |
test: $(PRG) |
test: $(SRC) |
./$(PRG) $(DIR) > result |
sort result > result.sort |
find $(DIR) > result2 |
/filefind/PHP/Makefile |
---|
1,7 → 1,6 |
SRC=filefind.php |
PRG=$(SRC) |
DIR=/var/tmp |
.PHONY: test cleantest |
test: |
php $(PRG) $(DIR) > result |
/filefind/bash/Makefile |
---|
1,9 → 1,8 |
SRC=filefind.bash |
PRG=$(SRC) |
DIR=/var/tmp |
.PHONY: test cleantest |
test: |
test: $(PRG) |
./$(PRG) $(DIR) > result |
sort result > result.sort |
find $(DIR) > result2 |
/filefind/go/Makefile |
---|
1,11 → 1,13 |
PRG=filefind |
SRC=$(PRG).go |
DIR=/var/tmp |
.PHONY: clean test cleantest |
$(PRG): $(SRC) |
go build $(SRC) |
run: $(PRG) |
./$(PRG) . |
clean: |
rm -f $(PRG) |
/filefind/java/Makefile |
---|
4,7 → 4,6 |
PRG=$(BASE).class |
SRC=$(BASE).java |
DIR=/var/tmp |
.PHONY: clean test cleantest |
$(PRG): $(SRC) |
@echo "INFO: building $@ from $^" |
/filefind/pascal/Makefile |
---|
1,11 → 1,13 |
PRG=filefind |
SRC=$(PRG).pas |
DIR=/var/tmp |
.PHONY: clean test cleantest |
$(PRG): $(SRC) |
$(PRG): |
fpc $(SRC) |
run: $(PRG) |
./$(PRG) . |
clean: |
rm -f $(PRG) $(PRG).o |
/filefind/perl/Makefile |
---|
1,9 → 1,8 |
SRC=filefind.pl |
PRG=$(SRC) |
DIR=/var/tmp |
.PHONY: test cleantest |
test: |
test: $(PRG) |
./$(PRG) $(DIR) > result |
sort result > result.sort |
find $(DIR) > result2 |
/filefind/python/Makefile |
---|
1,9 → 1,8 |
SRC=filefind.py |
PRG=$(SRC) |
DIR=/var/tmp |
.PHONY: test cleantest |
test: |
test: $(SRC) |
./$(PRG) $(DIR) > result |
sort result > result.sort |
find $(DIR) > result2 |
12,5 → 11,5 |
diff *.sort |
cleantest: |
rm -f result result.sort |
rm -f result2 result2.sort |
rm -rf result result.sort |
rm -rf result2 result2.sort |
/filefind/ruby/Makefile |
---|
1,9 → 1,8 |
SRC=filefind.rb |
PRG=$(SRC) |
DIR=/var/tmp |
.PHONY: test cleantest |
test: |
test: $(PRG) |
./$(PRG) $(DIR) > result |
sort result > result.sort |
find $(DIR) > result2 |