Lines 1-4
Link Here
|
1 |
--- Makefile.orig 2013-12-16 15:18:31 UTC |
1 |
--- Makefile.orig 2015-09-06 19:45:03 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -1,6 +1,6 @@ |
3 |
@@ -1,6 +1,6 @@ |
4 |
-PREFIX = usr |
4 |
-PREFIX = usr |
Lines 7-30
Link Here
|
7 |
-MANDIR = ${SHAREDIR}/man |
7 |
-MANDIR = ${SHAREDIR}/man |
8 |
+MANDIR = ${PREFIX}/man |
8 |
+MANDIR = ${PREFIX}/man |
9 |
BINDIR = ${PREFIX}/bin |
9 |
BINDIR = ${PREFIX}/bin |
10 |
SVNREV = 222 |
10 |
SVNREV = 224 |
11 |
VER = 0.4.2 |
11 |
VER = 0.4.3 |
12 |
@@ -13,12 +13,12 @@ endif |
12 |
@@ -13,7 +13,7 @@ endif |
13 |
CONFDIR = ${XDG_CONFIG_HOME}/euclid-wm |
13 |
CONFDIR = ${XDG_CONFIG_HOME}/euclid-wm |
14 |
|
14 |
|
15 |
CC = cc -pedantic -Wall |
15 |
CC = cc -pedantic -Wall |
16 |
-CFLAGS = -O2 -g -std=c99 |
16 |
-CFLAGS = -O3 -g -std=c99 |
17 |
+CFLAGS = -O2 -g -std=c99 -I/usr/local/include -L/usr/local/lib |
17 |
+CFLAGS = -O3 -g -std=c99 -I/usr/local/include -L/usr/local/lib |
18 |
LDFLAGS = -lX11 -lXinerama |
18 |
LDFLAGS = -lX11 -lXinerama |
19 |
|
19 |
|
20 |
.PHONY: all install install_conf clean uninstall dist dist_clean |
20 |
.PHONY: all install install_conf clean uninstall dist dist_clean |
21 |
|
21 |
@@ -31,19 +31,34 @@ noxinerama: euclid-wm.c |
22 |
-all: euclid-wm |
|
|
23 |
+all: noxinerama |
24 |
|
25 |
euclid-wm: euclid-wm.c |
26 |
${CC} $< ${LDFLAGS} ${CFLAGS} -o $@ |
27 |
@@ -28,14 +28,23 @@ noxinerama: euclid-wm.c |
28 |
cp noxinerama euclid-wm |
22 |
cp noxinerama euclid-wm |
29 |
|
23 |
|
30 |
install: all |
24 |
install: all |
Lines 34-44
Link Here
|
34 |
- @install -m644 euclid-wm.conf.sample -D -b ${DESTDIR}/${SHAREDIR}/euclid-wm/euclid-wm.conf |
28 |
- @install -m644 euclid-wm.conf.sample -D -b ${DESTDIR}/${SHAREDIR}/euclid-wm/euclid-wm.conf |
35 |
- @install -m644 euclidrc -D -b ${DESTDIR}/${SHAREDIR}/euclid-wm/euclidrc |
29 |
- @install -m644 euclidrc -D -b ${DESTDIR}/${SHAREDIR}/euclid-wm/euclidrc |
36 |
- @install -m644 VERSION -D ${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION 2>/dev/null || echo "From SVN: `svn info | grep Revision: | cut -d ' ' -f2`/`date +%F`" >${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION |
30 |
- @install -m644 VERSION -D ${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION 2>/dev/null || echo "From SVN: `svn info | grep Revision: | cut -d ' ' -f2`/`date +%F`" >${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION |
|
|
31 |
- @sed s_/usr/share_/${SHAREDIR}_ <start-euclid >start-euclid-local |
32 |
- @install -m755 start-euclid-local -D ${DESTDIR}/${BINDIR}/start-euclid |
33 |
- @install -m755 euclid-menu -D ${DESTDIR}/${BINDIR}/euclid-menu |
34 |
- @install -m755 ./handlers/c.sh -D ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers/c.sh |
35 |
- @install -m755 ./handlers/default.sh -D ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers/default.sh |
36 |
- @install -m755 ./handlers/.echo_file.sh -D ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers/.echo_file.sh |
37 |
- |
37 |
+# @install -m755 euclid-wm -D ${DESTDIR}/${BINDIR}/euclid-wm |
38 |
+# @install -m755 euclid-wm -D ${DESTDIR}/${BINDIR}/euclid-wm |
38 |
+ @cp -f euclid-wm ${DESTDIR}/${BINDIR}/euclid-wm |
39 |
+ @cp -f euclid-wm ${DESTDIR}/${BINDIR}/euclid-wm |
39 |
+# @install -m644 euclid.desktop -D ${DESTDIR}/${SHAREDIR}/xsessions/euclid.desktop |
40 |
+# @install -m644 euclid.desktop -D ${DESTDIR}/${SHAREDIR}/xsessions/euclid.desktop |
40 |
+ @mkdir -p ${DESTDIR}/${SHAREDIR}/xsessions |
41 |
+ @mkdir -p ${DESTDIR}/${SHAREDIR}/xsessions |
41 |
+ @cp -f euclid.desktop ${DESTDIR}/${SHAREDIR}/xsessions/euclid.desktop |
42 |
+ @cp -f euclid.desktop ${DESTDIR}/${SHAREDIR}/xsessions/euclid.desktop |
42 |
+# @install -m644 euclid.1 -D ${DESTDIR}/${MANDIR}/man1/euclid-wm.1 |
43 |
+# @install -m644 euclid.1 -D ${DESTDIR}/${MANDIR}/man1/euclid-wm.1 |
43 |
+ @cp -f euclid.1 ${DESTDIR}/${MANDIR}/man1/euclid-wm.1 |
44 |
+ @cp -f euclid.1 ${DESTDIR}/${MANDIR}/man1/euclid-wm.1 |
44 |
+# @install -m644 euclid-wm.conf.sample -D -b ${DESTDIR}/${SHAREDIR}/euclid-wm/euclid-wm.conf |
45 |
+# @install -m644 euclid-wm.conf.sample -D -b ${DESTDIR}/${SHAREDIR}/euclid-wm/euclid-wm.conf |
Lines 47-57
Link Here
|
47 |
+# @install -m644 euclidrc -D -b ${DESTDIR}/${SHAREDIR}/euclid-wm/euclidrc |
48 |
+# @install -m644 euclidrc -D -b ${DESTDIR}/${SHAREDIR}/euclid-wm/euclidrc |
48 |
+ @cp -f euclidrc ${DESTDIR}/${SHAREDIR}/euclid-wm/euclidrc |
49 |
+ @cp -f euclidrc ${DESTDIR}/${SHAREDIR}/euclid-wm/euclidrc |
49 |
+# @install -m644 VERSION -D ${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION 2>/dev/null || echo "From SVN: `svn info | grep Revision: | cut -d ' ' -f2`/`date +%F`" >${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION |
50 |
+# @install -m644 VERSION -D ${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION 2>/dev/null || echo "From SVN: `svn info | grep Revision: | cut -d ' ' -f2`/`date +%F`" >${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION |
50 |
+ @cp -f VERSION ${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION |
51 |
+ @echo ${VER}" "${SVNREV} > ${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION |
51 |
@sed s_/usr/share_/${SHAREDIR}_ <start-euclid >start-euclid-local |
52 |
+# @cp -f VERSION ${DESTDIR}/${SHAREDIR}/euclid-wm/VERSION |
52 |
- @install -m755 start-euclid-local -D ${DESTDIR}/${BINDIR}/start-euclid |
53 |
+# @sed s_/usr/share_/${SHAREDIR}_ <start-euclid >start-euclid-local |
|
|
54 |
+ @sed 's /usr/share /${SHAREDIR} ' <start-euclid >start-euclid-local |
53 |
+# @install -m755 start-euclid-local -D ${DESTDIR}/${BINDIR}/start-euclid |
55 |
+# @install -m755 start-euclid-local -D ${DESTDIR}/${BINDIR}/start-euclid |
54 |
+ @cp -f start-euclid-local ${DESTDIR}/${BINDIR}/start-euclid |
56 |
+ @cp -f start-euclid-local ${DESTDIR}/${BINDIR}/start-euclid |
|
|
57 |
+# @install -m755 euclid-menu -D ${DESTDIR}/${BINDIR}/euclid-menu |
58 |
+ @cp -f euclid-menu ${DESTDIR}/${BINDIR}/euclid-menu |
59 |
+# @install -m755 ./handlers/c.sh -D ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers/c.sh |
60 |
+ @mkdir -p ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers |
61 |
+ @cp -f ./handlers/c.sh ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers/c.sh |
62 |
+# @install -m755 ./handlers/default.sh -D ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers/default.sh |
63 |
+ @cp -f ./handlers/default.sh ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers/default.sh |
64 |
+# @install -m755 ./handlers/.echo_file.sh -D ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers/.echo_file.sh |
65 |
+ @cp -f ./handlers/.echo_file.sh ${DESTDIR}/${SHAREDIR}/euclid-menu/handlers/.echo_file.sh |
55 |
|
66 |
|
|
|
67 |
|
56 |
install_conf: |
68 |
install_conf: |
57 |
@install -b -D -m600 euclid-wm.conf.sample ${CONFDIR}/euclid-wm.conf |
|
|