blob: d77e4939866fa0b43dfe905e21f3ccbb7d011b8a (
plain)
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
|
SUBDIRS = . scanner everything repository invoke offsets
EXTRA_DIST = \
array.gir \
boxed.gir \
constant.gir \
enum.gir \
errors.gir \
function.gir \
interface.gir \
object.gir \
struct.gir \
types.gir \
union.gir \
xref1.gir \
xref2.gir
GIRTESTS = \
boxed.gir.test \
constant.gir.test \
enum.gir.test \
object.gir.test \
struct.gir.test
CLEANFILES = $(GIRTESTS:%.gir.test=%.1) $(GIRTESTS:%.gir.test=%.2)
%.gir.test: %.gir Makefile
@echo Testing $<:
$(DEBUG) $(top_builddir)/tools/g-ir-compiler --includedir=$(top_builddir)/gir $< > $*.1
$(DEBUG) $(top_builddir)/tools/g-ir-generate --includedir=$(top_builddir)/gir $*.1 > $*.2
diff -u $(srcdir)/$*.gir $*.2 && rm $*.1 $*.2
check-local: $(GIRTESTS)
@echo Running PEP8 on Python sources
@find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pep8.py --repeat
@echo Running Pyflakes on Python sources
@find $(top_srcdir)/giscanner -name \*.py | sort | uniq | xargs $(PYTHON) $(top_srcdir)/misc/pyflakes.py
|