Files
mce-dev/Makefile
Simo Piiroinen 95ff9e77f0 Remove rpm build time patch for file ownership
The Makefile explicitly assigns file ownership to root. There is a rpm
build time patch to change this while it should not be needed even for
the debian builds.

Apply the patch to code tree and remove the patch file.

[packaging] Remove rpm build time patch for file ownership
2015-05-21 09:24:51 +03:00

43 lines
963 B
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
INSTALL_DIR := install -d
INSTALL_DATA := install --mode=644
DOXYGEN := doxygen
PCDIR := $(DESTDIR)/usr/lib/pkgconfig
INCLUDEDIR := $(DESTDIR)/usr/include/mce
TOPDIR := $(shell /bin/pwd)
INCDIR := $(TOPDIR)/include/mce
DOCDIR := $(TOPDIR)/doc
PCFILE := mce.pc
INCLUDE_FILES := $(INCDIR)/dbus-names.h $(INCDIR)/mode-names.h
.PHONY: doc
doc: doc/warnings
doc/warnings: $(INCLUDE_FILES) Doxyfile
@if [ ! -d "$(DOCDIR)" ]; then mkdir "$(DOCDIR)"; fi
@$(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) &&\
$(INSTALL_DATA) $(PCFILE) $(PCDIR) &&\
$(INSTALL_DATA) $(INCLUDE_FILES) $(INCLUDEDIR)
.PHONY: distclean
distclean: clean