diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 29 |
1 files changed, 25 insertions, 4 deletions
@@ -19,6 +19,7 @@ EN_EXERCISES = \ 13_extend-class \ 14_property \ 15_private-methods \ + 17_button-and-label \ $(NULL) ES_EXERCISES = \ 1_imprimir-nombres \ @@ -53,6 +54,7 @@ ZIPS = \ python-ejercicios.zip \ python-exercises.zip \ $(NULL) + EN_PYTHON_FILES = \ $(addprefix exercises/en/,$(addsuffix .py,$(EN_EXERCISES))) \ $(addprefix exercises/en/,$(addsuffix _solution.py,$(EN_EXERCISES))) \ @@ -63,6 +65,25 @@ ES_PYTHON_FILES = \ $(addprefix exercises/es/,$(addsuffix _solucion.py,$(ES_EXERCISES))) \ $(NULL) +EN_EXERCISE_FILES = \ + $(EN_PYTHON_FILES) \ + exercises/en/16_gnome-devel-demos.txt \ + exercises/en/17_button-and-label.py \ + exercises/en/17_button-and-label_solution.py \ + exercises/en/Exercise18.activity/ \ + exercises/en/18_gtk-to-activity.txt \ + exercises/en/Exercise19.activity/ \ + exercises/en/19_translation.txt \ + exercises/en/Exercise20.activity/ \ + exercises/en/20_packaging.txt \ + exercises/en/21_complete-activity.txt \ + $(NULL) + +ES_EXERCISE_FILES = \ + $(ES_PYTHON_FILES) \ + exercises/es/16_gnome-devel-demos.txt \ + $(NULL) + all: $(PDFS) $(ZIPS) presentation.pdf: presentation.tex $(TEX_FILES) $(IMAGE_FILES) @@ -74,15 +95,15 @@ handout.pdf: handout.tex $(TEX_FILES) $(IMAGE_FILES) pdflatex "\providecommand\locale{$(LANG)}\input{$<}" # Zip up the exercises. -python-exercises.zip: $(EN_PYTHON_FILES) +python-exercises.zip: $(EN_EXERCISE_FILES) zip --quiet --no-dir-entries $@ $^ -python-ejercicios.zip: $(ES_PYTHON_FILES) +python-ejercicios.zip: $(ES_EXERCISE_FILES) zip --quiet --no-dir-entries $@ $^ check: - $(foreach ex,$(EN_EXERCISES),pep8 exercises/en/${ex}.py exercises/en/${ex}_solution.py;) - $(foreach ex,$(ES_EXERCISES),pep8 exercises/es/${ex}.py exercises/es/${ex}_solucion.py;) + pep8 $(EN_PYTHON_FILES) + pep8 $(ES_PYTHON_FILES) clean: rm -f $(PDFS:.pdf=.aux) |