This repository has been archived by the owner on Oct 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
75 lines (62 loc) · 2.01 KB
/
Makefile
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
include config.Mk
INSTDIR=${DESTDIR}${PREFIX}
CPPFLAGS += -D${FSH}
all:
mkdir -p bin
cp script/* bin/
@${MAKE} -C src
clean:
@${MAKE} -C src clean
# It's expected that the casual user will "make install"
# These sub-targets are meant for packagers who need a modular system
# otherwise install.sys and install.bin would need install.lib
# and install.all
# install.xm is for straight Motif binaries.
#install: install.lib install.sys install.xm install.bin install.all
install.dirs:
mkdir -p ${INSTDIR}/bin
mkdir -p ${INSTDIR}/lib${LIBSUFFIX}
mkdir -p ${INSTDIR}/share
# mkdir -p ${INSTDIR}/etc
install.sys: install.dirs
${INST} -s -m 0755 bin/dtlock ${INSTDIR}/bin/
chmod u+s ${INSTDIR}/bin/dtlock
${INST} -s -m 0755 bin/dtlogin ${INSTDIR}/bin/
install.bin: install.dirs
${INST} -s -m 0755 bin/dtfile ${INSTDIR}/bin/
${INST} -s -m 0755 bin/dtpanel ${INSTDIR}/bin/
${INST} -s -m 0755 bin/dtrun ${INSTDIR}/bin/
${INST} -s -m 0755 bin/dtsplash ${INSTDIR}/bin/
install.xm: install.dirs
${INST} -s -m 0755 bin/dtpad ${INSTDIR}/bin/
#install.all: install.dirs
# ${INST} -m 0755 bin/dtsession ${INSTDIR}/bin/
# ${INST} -m 0755 bin/dtterm ${INSTDIR}/bin/
# ${INST} -m 0755 bin/dtwm ${INSTDIR}/bin/
# cp -r share/opencde ${INSTDIR}/share/
#ifeq ($(PREFIX),/usr)
# sed -e 's|export LD_LIB.*PATH||' -i ${INSTDIR}/share/opencde/dtlogin/scripts/session
#endif
#ifeq ($(FSH),FSH)
# cp -r etc/opencde ${DESTDIR}/etc/
#else
# cp -r etc/opencde ${INSTDIR}/etc/
#endif
install.lib: install.dirs
cp -P lib/libmotifmm.so* ${INSTDIR}/lib${LIBSUFFIX}/
cp -P lib/libopencde.so* ${INSTDIR}/lib${LIBSUFFIX}/
uninstall:
rm -r -f ${INSTDIR}/share/opencde
rm -r -f ${INSTDIR}/etc/opencde
rm -f ${INSTDIR}/bin/dtfile
rm -f ${INSTDIR}/bin/dtlock
rm -f ${INSTDIR}/bin/dtlogin
rm -f ${INSTDIR}/bin/dtpad
rm -f ${INSTDIR}/bin/dtpanel
rm -f ${INSTDIR}/bin/dtrun
rm -f ${INSTDIR}/bin/dtsession
rm -f ${INSTDIR}/bin/dtsplash
rm -f ${INSTDIR}/bin/dtterm
rm -f ${INSTDIR}/bin/dtwm
rm -f ${INSTDIR}/lib/libmotifmm.so*
rm -f ${INSTDIR}/lib/libopencde.so*