irena-arm/i128/Makefile

53 lines
1 KiB
Makefile
Raw Permalink Normal View History

CFLAGS=-std=gnu99 -O3 -g
NCH=9
%.E: %.dat
./i128file -n $(NCH) < $< | grep ^E > $@
%.ES: %.dat
./i128file -n $(NCH) < $< > $@
%.ESS: %.dat
./i128file -n $(NCH) < $< | ./samplesort.py > $@
mV=10
resV=0.5
%.hist: %.E
./direnahist.awk mV=$(mV) resV=$(resV) $< >$@
.PRECIOUS: %.E %.ES
%.HK: %.dat
./i128file -n $(NCH) < $< | grep ^H > $@
%.HH: %.dat
./i128file -n $(NCH) < $< | awk '/^E/{if(t>3e9&&$$2<1e9)t0+=2**32;t=$$2};/^H/{$$1="HH " t+t0;print}' > $@
%_banana.E: %.E
awk -v I=6 -f I128.awk --s '{ for (i=I; i<I+18; i++) $$i = banana(i); print}' $< > $@
%_banana.hist: %.dat
./i128file -n $(NCH) < $< \
| awk -v I=6 -f I128.awk --s '/^E/{ for (i=I; i<I+$(NCH); i++) $$i = banana(i); print}' \
| ./direnahist.awk resV=$(resV) mV=$(mV) \
> $@
B1=60
B2=200
%_A_$(B1)-$(B2).2dhist: %.E
awk '/^E/ && $$10>$(B1)*10 && $$10<$(B2)*10{print $$19/$$10, $$10/10}' $< \
| ./hist.py -S 2 -s 100 \
> $@
PS2PDF=ps2pdf14 -dEPSCrop
PDFLATEX=pdflatex
PS2EPS=ps2epsi
%.pdf: %.eps
$(PS2PDF) $< $@
%.eps: %.ps
$(PS2EPS) $< $@