Makefile 562 B

12345678910111213141516171819202122232425
  1. #
  2. # GNU make Makefile for converting fixed width files
  3. # exported from the Brower clock into CSV files
  4. # with skier names taking from a google docs
  5. # spreadsheet that maps from bibs (start numbers)
  6. # to names.
  7. #
  8. # The CSV files are also rebuilt when the script
  9. # or the Makefile itself changes.
  10. #
  11. #
  12. CONVERT_TXT_TO_CSV_SCRIPT=combine_user_and_time.pl
  13. %.csv : %.txt
  14. perl $(CONVERT_TXT_TO_CSV_SCRIPT) "$<"
  15. TXTFILES:=$(wildcard *.txt)
  16. TARGETS:=$(TXTFILES:.txt=.csv)
  17. all: $(TARGETS)
  18. $(TARGETS): $(CONVERT_TXT_TO_CSV_SCRIPT) Makefile
  19. clean:
  20. rm -f "$(TARGETS)"