-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (36 loc) · 1.07 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
# This file is part of osso-systemui-dbus-dev
#
# Copyright (C) 2005-2006 Nokia Corporation. All rights reserved.
#
# Author: David Weinehall <david.weinehall@nokia.com>
INSTALL_DIR := install -d
INSTALL_DATA := install -o root -g root -m 644
INSTALL_DOC := cp -r
DOXYGEN := doxygen
PCDIR := $(DESTDIR)/usr/lib/pkgconfig
INCLUDEDIR := $(DESTDIR)/usr/include/systemui
DOCUMENTATION := $(DESTDIR)/usr/share/doc/osso-systemui-dbus-dev
TOPDIR := $(shell /bin/pwd)
INCDIR := $(TOPDIR)/include/systemui
DOCDIR := $(TOPDIR)/doc
PCFILE := osso-systemui-dbus.pc
INCLUDE_FILES := \
$(INCDIR)/dbus-names.h \
$(INCDIR)/actingdead-dbus-names.h \
$(INCDIR)/alarm_dialog-dbus-names.h
.PHONY: doc
doc:
-mkdir $(DOCDIR)
@$(DOXYGEN) 2> $(TOPDIR)/doc/warnings > /dev/null
clean:
@if [ x"$(DOCDIR)" != x"" ]; then \
rm -rf $(DOCDIR)/*; \
fi
.PHONY: install
install: doc
$(INSTALL_DIR) $(PCDIR) $(INCLUDEDIR) $(DOCUMENTATION)
$(INSTALL_DATA) $(PCFILE) $(PCDIR)
$(INSTALL_DATA) $(INCLUDE_FILES) $(INCLUDEDIR)
$(INSTALL_DOC) $(DOCDIR)/html $(DOCUMENTATION)
.PHONY: distclean
distclean: clean