Files
mce-dev/Makefile
Simo Piiroinen b40c427c43 [makefile] Do not silence doxygen warnings
Doxygen is noisy and can't be asked to be less verbose, but
hiding all output from it to a log file hides any real issues
it is facing.

Redirect only stdout which is where doxygen writes progress
noise, let warnings and such output to stderr stay visible.

Also follow makefile conventions by adding standard make
targets and using DESTDIR macro only in install rule.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
2017-11-18 18:14:59 +02:00

73 lines
1.9 KiB
Makefile

# 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 --mode=755 --directory
INSTALL_DATA := install --mode=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)