/
Makefile.am
49 lines (35 loc) · 1.16 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
SUBDIRS = scripts/gen-contrib contrib
export lem_contrib_prefix = ${datadir}/lem
bin_SCRIPTS = bin/${LEM_LAUNCHER}
EXTRA_DIST = bin/${LEM_LAUNCHER}
if GENERATE_NCURSES
bin_SCRIPTS += bin/lem-ncurses$(EXEEXT)
EXTRA_DIST += bin/lem-ncurses$(EXEEXT)
endif
if GENERATE_RPC
bin_SCRIPTS += bin/lem-rpc$(EXEEXT)
EXTRA_DIST += bin/lem-rpc$(EXEEXT)
endif
if GENERATE_XCB
bin_SCRIPTS += bin/lem-xcb$(EXEEXT)
EXTRA_DIST += bin/lem-xcb$(EXEEXT)
endif
lem-icon.svg: scripts/gen-desktop.ros
cd $(PWD);ros scripts/gen-desktop.ros --prefix ${prefix} --icon blue
lem-ncurses.desktop: scripts/gen-desktop.ros
cd $(PWD);ros scripts/gen-desktop.ros --prefix ${prefix}
%$(EXEEXT): %.ros
ros -L ${LISP_IMPL} -l $< dump output $(basename $(notdir $<))
ros -L ${LISP_IMPL} -l $< dump executable $<
bin/%.ros: roswell/%.ros
cp $< $@
bin/${LEM_LAUNCHER}:
${MKDIR_P} bin
cat roswell/lem | sed -e "s/ncurses/${DEFAULT_FRONTEND}/g" > $@
CLEANFILES = ${bin_SCRIPTS}
CLEANFILES += lem-icon.svg lem-ncurses.desktop
depend:
ros make-depends lem-ncurses bin/lem-ncurses > bin/lem-ncurses.depend
-include bin/lem-ncurses.depend
clean-local:
ros -L ${LISP_IMPL} delete dump lem-ncurses|true