File: Makefile.am

package info (click to toggle)
fitscut 1.4.4-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 924 kB
  • ctags: 465
  • sloc: ansic: 6,024; sh: 767; makefile: 132
file content (135 lines) | stat: -rw-r--r-- 3,333 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
bin_PROGRAMS = fitscut

if HAVE_LIBWCS

wcs_SOURCES = wcs_align.c wcs_align.h

fitscut_LDADD = $(WCS_LIBS)

endif

fitscut_SOURCES = 	\
	colormap.c	\
	draw.c		\
	extract.c	\
	file_check.c	\
	fitscut.c	\
	getopt1.c	\
	getopt.c	\
	histogram.c	\
	image_scale.c	\
	output_fits.c	\
	output_jpg.c	\
	output_png.c	\
	resize.c	\
	util.c		\
	colormap.h	\
	draw.h		\
	extract.h	\
	file_check.h	\
	fitscut.h	\
	getopt.h	\
	histogram.h	\
	image_scale.h	\
	output_fits.h	\
	output_jpg.h	\
	output_png.h	\
	resize.h	\
	util.h		\
	tailor.h	\
	revision.h	\
	$(wcs_SOURCES)

EXTRA_DIST = 		\
	AUTHORS		\
	ChangeLog	\
	COPYING		\
	INSTALL		\
	NEWS		\
	README		\
	THANKS		\
	TODO		\
	fitscut.spec.in \
	fitscut.spec	\
	test.fits

test: check
check: fitscut
	./fitscut -vv --x0=1 --y0=1 --columns=50 --rows=60 $(top_srcdir)/test.fits > _test.fits
	@LANG=""; export LANG; if test "-s _test.fits"; then \
	if test `wc -c < _test.fits` -eq 17280; then \
	   echo fitscut FITS test OK; \
	else \
	   echo FAILED fitscut FITS test: wrong size; \
	fi; \
	else \
	   echo FAILED fitscut FITS test: no output; \
	fi
	rm -f _test.fits
	./fitscut -vv --png --x0=1 --y0=1 --columns=50 --rows=60 $(top_srcdir)/test.fits > _test.png
	@LANG=""; export LANG; if test "-s _test.fits"; then \
	if [ -f "_test.png" ]; then \
	   echo fitscut PNG test OK; \
	else \
	   echo FAILED fitscut PNG test: wrong size; \
	fi; \
	else \
	   echo FAILED fitscut PNG test: no output; \
	fi
	rm -f _test.png
	./fitscut -vv --png --log-scale --x0=1 --y0=1 --columns=50 --rows=60 $(top_srcdir)/test.fits > _test.png
	@LANG=""; export LANG; if [ -s "_test.png" ]; then \
	if [ -f "_test.png" ]; then \
	   echo fitscut PNG log test OK; \
	else \
	   echo FAILED fitscut PNG log test: wrong size; \
	fi; \
	else \
	   echo FAILED fitscut PNG log test: no output; \
	fi
	rm -f _test.png
	./fitscut -vv --png --sqrt-scale --x0=1 --y0=1 --columns=50 --rows=60 $(top_srcdir)/test.fits > _test.png
	@LANG=""; export LANG; if [ -s "_test.png" ]; then \
	if [ -f "_test.png" ]; then \
	   echo fitscut PNG sqrt test OK; \
	else \
	   echo FAILED fitscut PNG sqrt test: wrong size; \
	fi; \
	else \
	   echo FAILED fitscut PNG sqrt test: no output; \
	fi
	rm -f _test.png
	./fitscut -vv --png --autoscale=98 --x0=1 --y0=1 --columns=50 --rows=60 $(top_srcdir)/test.fits > _test.png
	@LANG=""; export LANG; if [ -s "_test.png" ]; then \
	if [ -f "_test.png" ]; then \
	   echo fitscut PNG autoscale test OK; \
	else \
	   echo FAILED fitscut PNG autoscale test: wrong size; \
	fi; \
	else \
	   echo FAILED fitscut PNG autoscale  test: no output; \
	fi
	rm -f _test.png
	./fitscut -vv --png --autoscale=98 --all --zoom=2.0 $(top_srcdir)/test.fits > _test.png
	@LANG=""; export LANG; if [ -s "_test.png" ]; then \
	if [ -f "_test.png" ]; then \
	   echo fitscut PNG zoom test OK; \
	else \
	   echo FAILED fitscut PNG zoom test: wrong size; \
	fi; \
	else \
	   echo FAILED fitscut PNG zoom test: no output; \
	fi
	rm -f _test.png
	./fitscut -vv --png --autoscale=98 --all --asinh-scale $(top_srcdir)/test.fits > _test.png
	@LANG=""; export LANG; if [ -s "_test.png" ]; then \
	if [ -f "_test.png" ]; then \
	   echo fitscut PNG asinh test OK; \
	else \
	   echo FAILED fitscut PNG asinh test: wrong size; \
	fi; \
	else \
	   echo FAILED fitscut PNG asinh test: no output; \
	fi
	rm -f _test.png