-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
64 lines (47 loc) · 2.18 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
SUBDIRS = src src_call
EXTRA_DIST = I18N.mk openscada.pc.in README* TODO*
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = openscada.pc
if ResourcesAllow
data/LibsDB/*.db data/ModelsDB/AGLKS/*.db data/ModelsDB/Boiler/*.db:
@for db in `find $$(dirname $@) -name \*.sql`; do \
tDb=`dirname $$db`/`basename $$db .sql`.db ; \
if test ! -f $$tDb; then sqlite3 -init $$db $$tDb .exit ||: ; fi; \
done
clean-local:
rm -f data/LibsDB/*.db ; \
rm -f data/ModelsDB/AGLKS/*.db ; \
rm -f data/ModelsDB/Boiler/*.db ;
bin_SCRIPTS = data/openscada_start data/openscada-proj
sysconf_DATA = data/oscada.xml data/oscada_server.xml data/oscada_plc.xml data/oscada_start.xml data/ModelsDB/AGLKS/oscada_AGLKS.xml data/ModelsDB/Boiler/oscada_Boiler.xml
sysicodir = $(datadir)/icons
sysico_DATA = data/openscada.png data/ModelsDB/AGLKS/openscada_AGLKS.png data/ModelsDB/Boiler/openscada_Boiler.png
appsdir = $(datadir)/applications
apps_DATA = data/openscada.desktop data/ModelsDB/AGLKS/openscada_AGLKS.desktop data/ModelsDB/Boiler/openscada_Boiler.desktop
icodir = $(oscd_datadir)/icons
ico_DATA = data/icons/* data/openscada.png data/ModelsDB/AGLKS/AGLKS.png data/ModelsDB/Boiler/Boiler.png
libdbdir = $(oscd_datadir)/LibsDB
libdb_DATA = data/LibsDB/*.db
AGLKSdbdir = $(oscd_datadir)/AGLKS
AGLKSdb_DATA = data/ModelsDB/AGLKS/*.db
Boilerdbdir = $(oscd_datadir)/Boiler
Boilerdb_DATA = data/ModelsDB/Boiler/*.db
endif
distSrc: distdir
rm -rf $(distdir)/data $(distdir)/doc
tar --exclude=".svn" -cvzf $(PACKAGE)-$(PACKAGE_VERSION).tar.gz $(distdir)
$(am__remove_distdir)
distSrc-lzma: distdir
rm -rf $(distdir)/data $(distdir)/doc
tar --exclude=".svn" --use-compress-program=lzma -cvf $(PACKAGE)-$(PACKAGE_VERSION).tar.lzma $(distdir)
$(am__remove_distdir)
distSrc-xz: distdir
rm -rf $(distdir)/data $(distdir)/doc
tar --exclude=".svn" -J -cvf $(PACKAGE)-$(PACKAGE_VERSION).tar.xz $(distdir)
$(am__remove_distdir)
distRes:
tar --exclude=".svn" -cvzf $(PACKAGE)-res-$(PACKAGE_VERSION).tar.gz doc data
distRes-lzma:
tar --exclude=".svn" --use-compress-program=lzma -cvf $(PACKAGE)-res-$(PACKAGE_VERSION).tar.lzma doc data
distRes-xz:
tar --exclude=".svn" -J -cvf $(PACKAGE)-res-$(PACKAGE_VERSION).tar.xz doc data