-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
72 lines (51 loc) · 1.88 KB
/
Copy pathMakefile
File metadata and controls
72 lines (51 loc) · 1.88 KB
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
# This file is part of mce-dev
#
# Copyright © 2005-2009 Nokia Corporation.
#
# Author: David Weinehall <david.weinehall@nokia.com>
# Modified by: Ilya Dogolazky, Tuomo Tanskanen
# ----------------------------------------------------------------------------
# TOP LEVEL TARGETS
# ----------------------------------------------------------------------------
.PHONY: build doc install clean distclean mostlyclean
build::
doc::
install::
mostlyclean::
$(RM) *.bak *~
$(RM) mce/include/*.bak mce/include/*~
clean:: mostlyclean
distclean:: clean
# ----------------------------------------------------------------------------
# INSTALL CONFIG
# ----------------------------------------------------------------------------
DESTDIR ?= /tmp/test-mce-dev
PCDIR ?= /usr/lib/pkgconfig
INCLUDEDIR := /usr/include/mce
INSTALL_DIR := install -m 755 -d
INSTALL_DATA := install -m 644
# ----------------------------------------------------------------------------
# FILES TO BUILD / INSTALL
# ----------------------------------------------------------------------------
PCFILE += mce.pc
INCLUDE_FILES += include/mce/dbus-names.h
INCLUDE_FILES += include/mce/mode-names.h
# ----------------------------------------------------------------------------
# DOCUMENTATION RULES
# ----------------------------------------------------------------------------
doc:: doc/doxygen.log
doc/doxygen.log: $(INCLUDE_FILES) Doxyfile
mkdir -p doc
doxygen 1> $@ # stdout=noise stderr=warnings
clean::
$(RM) -rf doc
# ----------------------------------------------------------------------------
# INSTALL RULES
# ----------------------------------------------------------------------------
install::
# package config files
$(INSTALL_DIR) $(DESTDIR)$(PCDIR)
$(INSTALL_DATA) $(PCFILE) $(DESTDIR)$(PCDIR)/
# header files
$(INSTALL_DIR) $(DESTDIR)$(INCLUDEDIR)
$(INSTALL_DATA) $(INCLUDE_FILES) $(DESTDIR)$(INCLUDEDIR)