forked from os-autoinst/os-autoinst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
134 lines (113 loc) · 2.91 KB
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
doc_DATA = \
README \
INSTALL \
COPYING \
env.sh.sample \
doc/basetest.html \
doc/bmwqemu.html \
doc/debian-install-workflow.txt \
doc/fedora-installation.txt
if WITH_OPENCV
lib_LTLIBRARIES = libtinycv.la
libtinycv_la_SOURCES = \
ppmclibs/tinycv.cc \
ppmclibs/tinycv.h
nodist_libtinycv_la_SOURCES = ppmclibs/tinycv_wrap.cxx
libtinycv_la_LDFLAGS = -no-undefined
libtinycv_la_CXXFLAGS = \
$(OPENCV_CFLAGS) \
$(PERL_CFLAGS)
libtinycv_la_LIBADD = $(OPENCV_LIBS)
ppmcexecdir = $(pkglibexecdir)/ppmclibs
ppmcexec_SCRIPTS = \
ppmclibs/tinycv.pm
endif
packagestatedir = $(localstatedir)/lib/os-autoinst
packagestate_DATA_FOLDERS = \
waitimgs \
testimgs \
audio
backendexecdir = $(pkglibexecdir)/backend
backendexec_SCRIPTS = \
backend/baseclass.pm \
backend/kvm2usb.pm \
backend/qemu.pm \
backend/vbox.pm
backendhelpexecdir = $(pkglibexecdir)/backend/helper
backendhelpexec_SCRIPTS = \
backend/helper/scancodes.pm
pkglibexec_SCRIPTS = \
autoinstallstep.pm \
autotest.pm \
basenoupdate.pm \
basetest.pm \
bmwqemu.pm \
goodimage.pm \
httpnotifyconf.pm \
installstep.pm \
ocr.pm \
ppm.pm \
start.pl
pkglibexec_FOLDERS = \
consoletest.d \
distri \
tools \
inst \
inst.d \
workaround \
x11test.d
# sort the above out so it is not done directory wise
bin_SCRIPTS = bin/isotovideo
EXTRA_DIST = \
autogen.sh \
bin/isotovideo.in \
ppmclibs/tinycv.i \
$(backendhelpexec_SCRIPTS) $(backendexec_SCRIPTS) \
$(doc_DATA) $(pkglibexec_DATA) $(pkglibexec_SCRIPTS) $(packagestate_DATA_FOLDERS) $(pkglibexec_FOLDERS)
CLEANFILES = \
$(bin_SCRIPTS) \
$(ppmcexec_SCRIPTS) \
ppmclibs/tinycv_wrap.cxx \
doc/basetest.html \
doc/bmwqemu.html
doc/%.html: %.pm
pod2html $< > $@
if WITH_OPENCV
ppmclibs/tinycv.pm: ppmclibs/tinycv.i ppmclibs/tinycv_wrap.cxx
ppmclibs/tinycv_wrap.cxx: ppmclibs/tinycv.i
$(SWIG) -c++ $(AM_CPPFLAGS) -perl5 -o $@ $<
endif
install-data-local:
$(MKDIR_P) $(DESTDIR)/$(packagestatedir) ; \
for i in $(packagestate_DATA_FOLDERS) ; do \
cp -r $(top_srcdir)/$$i "$(DESTDIR)/$(packagestatedir)" ; \
done
$(MKDIR_P) "$(DESTDIR)/$(pkgdatadir)" ; \
for i in $(pkglibexec_FOLDERS) ; do \
cp -r $(top_srcdir)/$$i "$(DESTDIR)/$(pkglibexecdir)" ; \
done
uninstall-local:
for i in $(packagestate_DATA_FOLDERS) ; do \
rm -rf "$(DESTDIR)/$(packagestatedir)/$$i" ; \
done
for i in $(pkglibexec_FOLDERS) ; do \
rm -rf "$(DESTDIR)/$(pkglibexecdir)/$$i" ; \
done
dist-hook:
@if test -d "$(srcdir)/.git"; \
then \
echo Creating ChangeLog && \
( cd "$(top_srcdir)" && \
echo '# Generated by Makefile. Do not edit.'; echo; \
$(top_srcdir)/missing --run git log ) > ChangeLog.tmp \
&& mv -f ChangeLog.tmp $(distdir)/ChangeLog \
|| ( rm -f ChangeLog.tmp ; \
echo Failed to generate ChangeLog >&2 ); \
else \
echo A git clone is required to generate a ChangeLog >&2; \
fi
rm -rf `find $(distdir) -name .gitignore`
distclean-local: clean-local
clean-local:
-rm -rf *.tar.*