forked from LuaDist/wxlua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.in
141 lines (110 loc) · 4.82 KB
/
Makefile.in
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
136
137
138
139
140
141
# =========================================================================
# This makefile was generated by
# Bakefile 0.2.3 (http://www.bakefile.org)
# Do not modify, all changes will be overwritten!
# =========================================================================
@MAKE_SET@
prefix = @prefix@
exec_prefix = @exec_prefix@
datarootdir = @datarootdir@
INSTALL = @INSTALL@
top_srcdir = @top_srcdir@
libdir = @libdir@
datadir = @datadir@
### Variables: ###
DESTDIR =
### Conditionally set variables: ###
@COND_USE_APPS_1@__apps___depname = apps
@COND_USE_APPS_1@__install_apps___depname = install_apps
@COND_USE_APPS_1@__uninstall_apps___depname = uninstall_apps
@COND_USE_APPS_1@__install_strip_apps___depname = install-strip_apps
### Targets: ###
all: modules $(__apps___depname)
install: all install_modules $(__install_apps___depname) samples desktop mime icon
uninstall: uninstall_modules $(__uninstall_apps___depname)
rm -f $(DESTDIR)$(libdir)/pkgconfig/wxlua.pc
rm -rf $(DESTDIR)$(datadir)/wxlua
rm -f $(DESTDIR)$(datadir)/applications/wxlua.desktop
rm -f $(DESTDIR)$(datadir)/mime/packages/wxlua.xml
rm -f $(DESTDIR)$(datadir)/pixmaps/wxlualogo.xpm
install-strip: install install-strip_modules $(__install_strip_apps___depname)
clean:
rm -rf ./.deps ./.pch
rm -f ./*.o
-(cd ./modules/ && $(MAKE) clean)
-(cd ./apps/ && $(MAKE) clean)
rm -f build/autopackage/default.apspec
distclean: clean
rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
-(cd ./modules/ && $(MAKE) distclean)
-(cd ./apps/ && $(MAKE) distclean)
modules:
(cd ./modules/ && $(MAKE) )
install_modules:
(cd ./modules/ && $(MAKE) install)
uninstall_modules:
(cd ./modules/ && $(MAKE) uninstall)
install-strip_modules:
(cd ./modules/ && $(MAKE) install-strip)
@COND_USE_APPS_1@apps:
@COND_USE_APPS_1@ (cd ./apps/ && $(MAKE) )
@COND_USE_APPS_1@install_apps:
@COND_USE_APPS_1@ (cd ./apps/ && $(MAKE) install)
@COND_USE_APPS_1@uninstall_apps:
@COND_USE_APPS_1@ (cd ./apps/ && $(MAKE) uninstall)
@COND_USE_APPS_1@install-strip_apps:
@COND_USE_APPS_1@ (cd ./apps/ && $(MAKE) install-strip)
samples:
@mkdir -p $(DESTDIR)$(datadir)/wxlua/samples
@for f in samples/auidemo.wx.lua samples/bindings.wx.lua samples/calculator.wx.lua samples/choices.wx.lua samples/controls.wx.lua samples/coroutine.wx.lua samples/dialog.wx.lua samples/editor.wx.lua samples/grid.wx.lua samples/gridtable.wx.lua samples/htmlwin.wx.lua samples/luamodule.wx.lua samples/mdi.wx.lua samples/media.wx.lua samples/minimal.wx.lua samples/picker.wx.lua samples/printing.wx.lua samples/scribble.wx.lua samples/settings.wx.lua samples/sizer.wx.lua samples/tree.wx.lua samples/unittest.wx.lua samples/validator.wx.lua samples/veryminimal.wx.lua samples/wxluasudoku.wx.lua samples/calculator.xrc; do \
if test ! -f $(DESTDIR)$(datadir)/wxlua/samples/$$f -a ! -d $(DESTDIR)$(datadir)/wxlua/samples/$$f ; \
then x=yep ; \
else x=`find $(top_srcdir)/$$f -newer $(DESTDIR)$(datadir)/wxlua/samples/$$f -print` ; \
fi; \
case "$$x" in ?*) \
cp -pRf $(top_srcdir)/$$f $(DESTDIR)$(datadir)/wxlua/samples ;; \
esac; \
done
desktop:
@mkdir -p $(DESTDIR)$(datadir)/applications
@for f in distrib/autopackage/wxlua.desktop; do \
if test ! -f $(DESTDIR)$(datadir)/applications/$$f -a ! -d $(DESTDIR)$(datadir)/applications/$$f ; \
then x=yep ; \
else x=`find $(top_srcdir)/$$f -newer $(DESTDIR)$(datadir)/applications/$$f -print` ; \
fi; \
case "$$x" in ?*) \
cp -pRf $(top_srcdir)/$$f $(DESTDIR)$(datadir)/applications ;; \
esac; \
done
mime:
@mkdir -p $(DESTDIR)$(datadir)/mime/packages
@for f in distrib/autopackage/wxlua.xml; do \
if test ! -f $(DESTDIR)$(datadir)/mime/packages/$$f -a ! -d $(DESTDIR)$(datadir)/mime/packages/$$f ; \
then x=yep ; \
else x=`find $(top_srcdir)/$$f -newer $(DESTDIR)$(datadir)/mime/packages/$$f -print` ; \
fi; \
case "$$x" in ?*) \
cp -pRf $(top_srcdir)/$$f $(DESTDIR)$(datadir)/mime/packages ;; \
esac; \
done
icon:
@mkdir -p $(DESTDIR)$(datadir)/pixmaps
@for f in art/wxlualogo.xpm; do \
if test ! -f $(DESTDIR)$(datadir)/pixmaps/$$f -a ! -d $(DESTDIR)$(datadir)/pixmaps/$$f ; \
then x=yep ; \
else x=`find $(top_srcdir)/$$f -newer $(DESTDIR)$(datadir)/pixmaps/$$f -print` ; \
fi; \
case "$$x" in ?*) \
cp -pRf $(top_srcdir)/$$f $(DESTDIR)$(datadir)/pixmaps ;; \
esac; \
done
docs:
@echo =============================================
@echo Creating wxLua documentation using doxygen...
@echo =============================================
( cd $(top_srcdir)/docs && doxygen doxygen.cfg )
autopackage: clean
makeinstaller build/autopackage/default.apspec
# Include dependency info, if present:
@IF_GNU_MAKE@-include .deps/*.d
.PHONY: all install uninstall clean distclean modules install_modules uninstall_modules install-strip_modules apps install_apps uninstall_apps install-strip_apps samples desktop mime icon