Lines 1-13
Link Here
|
1 |
--- Makefile.orig 2016-10-18 22:32:19 UTC |
1 |
--- Makefile.orig 2017-02-04 00:51:04 UTC |
2 |
+++ Makefile |
2 |
+++ Makefile |
3 |
@@ -1,5 +1,4 @@ |
3 |
@@ -1,5 +1,5 @@ |
4 |
-CFLAGS := -g -Os |
4 |
CFLAGS := -g -Os |
5 |
-prefix := /usr |
5 |
-prefix := /usr |
6 |
+prefix := /usr/local |
6 |
+prefix := /usr/local |
7 |
etcprefix := |
7 |
etcprefix := |
8 |
MANDIR := ${prefix}/share/man |
8 |
MANDIR := ${prefix}/share/man |
9 |
# Define appropiately for your distribution |
9 |
# Define appropiately for your distribution |
10 |
@@ -27,14 +26,21 @@ all: mcelog |
10 |
@@ -27,14 +27,21 @@ all: mcelog |
11 |
|
11 |
|
12 |
.PHONY: install clean depend FORCE |
12 |
.PHONY: install clean depend FORCE |
13 |
|
13 |
|
Lines 32-38
Link Here
|
32 |
CLEAN := mcelog dmi tsc dbquery .depend .depend.X dbquery.o \ |
32 |
CLEAN := mcelog dmi tsc dbquery .depend .depend.X dbquery.o \ |
33 |
version.o version.c version.tmp |
33 |
version.o version.c version.tmp |
34 |
DOC := mce.pdf |
34 |
DOC := mce.pdf |
35 |
@@ -43,7 +49,7 @@ ADD_DEFINES := |
35 |
@@ -43,7 +50,7 @@ ADD_DEFINES := |
36 |
|
36 |
|
37 |
SRC := $(OBJ:.o=.c) |
37 |
SRC := $(OBJ:.o=.c) |
38 |
|
38 |
|
Lines 41-56
Link Here
|
41 |
|
41 |
|
42 |
# dbquery intentionally not installed by default |
42 |
# dbquery intentionally not installed by default |
43 |
install: mcelog mcelog.conf mcelog.conf.5 mcelog.triggers.5 |
43 |
install: mcelog mcelog.conf mcelog.conf.5 mcelog.triggers.5 |
44 |
@@ -82,7 +88,7 @@ depend: .depend |
44 |
@@ -82,7 +89,7 @@ depend: .depend |
45 |
|
45 |
|
46 |
version.tmp: FORCE |
46 |
version.tmp: FORCE |
47 |
( echo -n "char version[] = \"" ; \ |
47 |
( echo -n "char version[] = \"" ; \ |
48 |
- if type -p git >/dev/null; then \ |
48 |
- if command -v git >/dev/null; then \ |
49 |
+ if command -v git >/dev/null; then \ |
49 |
+ if false; then \ |
50 |
if [ -d .git ] ; then \ |
50 |
if [ -d .git ] ; then \ |
51 |
git describe --tags HEAD | tr -d '\n'; \ |
51 |
git describe --tags HEAD | tr -d '\n'; \ |
52 |
else \ |
52 |
else \ |
53 |
@@ -98,8 +104,6 @@ version.c: version.tmp |
53 |
@@ -98,8 +105,6 @@ version.c: version.tmp |
54 |
.depend: ${SRC} |
54 |
.depend: ${SRC} |
55 |
${CC} -MM -I. ${SRC} > .depend.X && mv .depend.X .depend |
55 |
${CC} -MM -I. ${SRC} > .depend.X && mv .depend.X .depend |
56 |
|
56 |
|