From 645499d81f9545575714422e269f3ed546a8a672 Mon Sep 17 00:00:00 2001
From: Jan Benda <jan.benda@uni-tuebingen.de>
Date: Tue, 24 Jan 2017 14:07:40 +0100
Subject: [PATCH] all Makefiles use central project.mk

---
 projects/project_adaptation_fit/Makefile             | 11 ++---------
 projects/project_eod/Makefile                        | 11 ++---------
 projects/project_eyetracker/Makefile                 | 11 ++---------
 projects/project_fano_slope/Makefile                 | 11 ++---------
 projects/project_fano_test/Makefile                  | 11 ++---------
 projects/project_fano_time/Makefile                  | 11 ++---------
 projects/project_input_resistance/Makefile           | 11 ++---------
 projects/project_isicorrelations/Makefile            | 11 ++---------
 projects/project_isipdffit/Makefile                  | 11 ++---------
 projects/project_lif/Makefile                        | 11 ++---------
 projects/project_mutualinfo/Makefile                 | 11 ++---------
 projects/project_noiseficurves/Makefile              | 11 ++---------
 projects/project_numbers/Makefile                    | 11 ++---------
 projects/project_onset_fi/Makefile                   | 11 ++---------
 projects/project_pca_natural_images/Makefile         | 12 ++----------
 .../pca_natural_images.tex                           |  0
 projects/project_photoreceptor/Makefile              | 11 ++---------
 projects/project_populationvector/Makefile           |  2 ++
 projects/project_qvalues/Makefile                    | 11 ++---------
 projects/project_random_walk/Makefile                | 11 ++---------
 projects/project_serialcorrelation/Makefile          | 11 ++---------
 projects/project_spectra/Makefile                    | 11 ++---------
 projects/project_steady_state_fi/Makefile            | 11 ++---------
 projects/project_stimulus_reconstruction/Makefile    | 11 ++---------
 projects/project_template/Makefile                   | 11 ++---------
 projects/project_vector_strength/Makefile            | 11 ++---------
 .../{ => code}/export_data.py                        |  0
 projects/project_vector_strength/vector_strength.tex |  0
 28 files changed, 50 insertions(+), 217 deletions(-)
 mode change 100755 => 100644 projects/project_pca_natural_images/pca_natural_images.tex
 rename projects/project_vector_strength/{ => code}/export_data.py (100%)
 mode change 100755 => 100644 projects/project_vector_strength/vector_strength.tex

diff --git a/projects/project_adaptation_fit/Makefile b/projects/project_adaptation_fit/Makefile
index 437b664..a7b3726 100644
--- a/projects/project_adaptation_fit/Makefile
+++ b/projects/project_adaptation_fit/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat data/*.mat
+include ../project.mk
diff --git a/projects/project_eod/Makefile b/projects/project_eod/Makefile
index 2574730..a7b3726 100644
--- a/projects/project_eod/Makefile
+++ b/projects/project_eod/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf  data/*.mat
+include ../project.mk
diff --git a/projects/project_eyetracker/Makefile b/projects/project_eyetracker/Makefile
index 064bfc3..a7b3726 100644
--- a/projects/project_eyetracker/Makefile
+++ b/projects/project_eyetracker/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf data/*.mat
+include ../project.mk
diff --git a/projects/project_fano_slope/Makefile b/projects/project_fano_slope/Makefile
index 6422eb4..a7b3726 100644
--- a/projects/project_fano_slope/Makefile
+++ b/projects/project_fano_slope/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat *.m
+include ../project.mk
diff --git a/projects/project_fano_test/Makefile b/projects/project_fano_test/Makefile
index dad25ce..a7b3726 100644
--- a/projects/project_fano_test/Makefile
+++ b/projects/project_fano_test/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat
+include ../project.mk
diff --git a/projects/project_fano_time/Makefile b/projects/project_fano_time/Makefile
index 6422eb4..a7b3726 100644
--- a/projects/project_fano_time/Makefile
+++ b/projects/project_fano_time/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat *.m
+include ../project.mk
diff --git a/projects/project_input_resistance/Makefile b/projects/project_input_resistance/Makefile
index 8c2681a..a7b3726 100644
--- a/projects/project_input_resistance/Makefile
+++ b/projects/project_input_resistance/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.out auto 
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf data/*.mat
+include ../project.mk
diff --git a/projects/project_isicorrelations/Makefile b/projects/project_isicorrelations/Makefile
index 6422eb4..a7b3726 100644
--- a/projects/project_isicorrelations/Makefile
+++ b/projects/project_isicorrelations/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat *.m
+include ../project.mk
diff --git a/projects/project_isipdffit/Makefile b/projects/project_isipdffit/Makefile
index 6422eb4..a7b3726 100644
--- a/projects/project_isipdffit/Makefile
+++ b/projects/project_isipdffit/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat *.m
+include ../project.mk
diff --git a/projects/project_lif/Makefile b/projects/project_lif/Makefile
index 6422eb4..a7b3726 100644
--- a/projects/project_lif/Makefile
+++ b/projects/project_lif/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat *.m
+include ../project.mk
diff --git a/projects/project_mutualinfo/Makefile b/projects/project_mutualinfo/Makefile
index dad25ce..a7b3726 100644
--- a/projects/project_mutualinfo/Makefile
+++ b/projects/project_mutualinfo/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat
+include ../project.mk
diff --git a/projects/project_noiseficurves/Makefile b/projects/project_noiseficurves/Makefile
index 6422eb4..a7b3726 100644
--- a/projects/project_noiseficurves/Makefile
+++ b/projects/project_noiseficurves/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat *.m
+include ../project.mk
diff --git a/projects/project_numbers/Makefile b/projects/project_numbers/Makefile
index 437b664..a7b3726 100644
--- a/projects/project_numbers/Makefile
+++ b/projects/project_numbers/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat data/*.mat
+include ../project.mk
diff --git a/projects/project_onset_fi/Makefile b/projects/project_onset_fi/Makefile
index 437b664..a7b3726 100644
--- a/projects/project_onset_fi/Makefile
+++ b/projects/project_onset_fi/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat data/*.mat
+include ../project.mk
diff --git a/projects/project_pca_natural_images/Makefile b/projects/project_pca_natural_images/Makefile
index 3da8318..467c7dc 100644
--- a/projects/project_pca_natural_images/Makefile
+++ b/projects/project_pca_natural_images/Makefile
@@ -1,11 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=*.jpg
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto *.bbl *.blg
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.jpg
+include ../project.mk
diff --git a/projects/project_pca_natural_images/pca_natural_images.tex b/projects/project_pca_natural_images/pca_natural_images.tex
old mode 100755
new mode 100644
diff --git a/projects/project_photoreceptor/Makefile b/projects/project_photoreceptor/Makefile
index fd67389..a7b3726 100644
--- a/projects/project_photoreceptor/Makefile
+++ b/projects/project_photoreceptor/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat data/*.mat
+include ../project.mk
diff --git a/projects/project_populationvector/Makefile b/projects/project_populationvector/Makefile
index 972e839..a7b3726 100644
--- a/projects/project_populationvector/Makefile
+++ b/projects/project_populationvector/Makefile
@@ -1 +1,3 @@
+ZIPFILES=
+
 include ../project.mk
diff --git a/projects/project_qvalues/Makefile b/projects/project_qvalues/Makefile
index dad25ce..a7b3726 100644
--- a/projects/project_qvalues/Makefile
+++ b/projects/project_qvalues/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat
+include ../project.mk
diff --git a/projects/project_random_walk/Makefile b/projects/project_random_walk/Makefile
index 437b664..a7b3726 100644
--- a/projects/project_random_walk/Makefile
+++ b/projects/project_random_walk/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat data/*.mat
+include ../project.mk
diff --git a/projects/project_serialcorrelation/Makefile b/projects/project_serialcorrelation/Makefile
index 6422eb4..a7b3726 100644
--- a/projects/project_serialcorrelation/Makefile
+++ b/projects/project_serialcorrelation/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat *.m
+include ../project.mk
diff --git a/projects/project_spectra/Makefile b/projects/project_spectra/Makefile
index dad25ce..a7b3726 100644
--- a/projects/project_spectra/Makefile
+++ b/projects/project_spectra/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat
+include ../project.mk
diff --git a/projects/project_steady_state_fi/Makefile b/projects/project_steady_state_fi/Makefile
index dad25ce..a7b3726 100644
--- a/projects/project_steady_state_fi/Makefile
+++ b/projects/project_steady_state_fi/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat
+include ../project.mk
diff --git a/projects/project_stimulus_reconstruction/Makefile b/projects/project_stimulus_reconstruction/Makefile
index 2574730..a7b3726 100644
--- a/projects/project_stimulus_reconstruction/Makefile
+++ b/projects/project_stimulus_reconstruction/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf  data/*.mat
+include ../project.mk
diff --git a/projects/project_template/Makefile b/projects/project_template/Makefile
index 6422eb4..a7b3726 100644
--- a/projects/project_template/Makefile
+++ b/projects/project_template/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf *.dat *.mat *.m
+include ../project.mk
diff --git a/projects/project_vector_strength/Makefile b/projects/project_vector_strength/Makefile
index 064bfc3..a7b3726 100644
--- a/projects/project_vector_strength/Makefile
+++ b/projects/project_vector_strength/Makefile
@@ -1,10 +1,3 @@
-latex:
-	pdflatex *.tex > /dev/null
-	pdflatex *.tex > /dev/null
+ZIPFILES=
 
-clean:
-	rm -rf *.log *.aux *.zip *.out auto
-	rm -f `basename *.tex .tex`.pdf
-
-zip: latex
-	zip `basename *.tex .tex`.zip *.pdf data/*.mat
+include ../project.mk
diff --git a/projects/project_vector_strength/export_data.py b/projects/project_vector_strength/code/export_data.py
similarity index 100%
rename from projects/project_vector_strength/export_data.py
rename to projects/project_vector_strength/code/export_data.py
diff --git a/projects/project_vector_strength/vector_strength.tex b/projects/project_vector_strength/vector_strength.tex
old mode 100755
new mode 100644