2011-12-01 18:01:55 +01:00
|
|
|
# Makefile for plymouth-theme-openmamba
|
|
|
|
# Copyright (C) 2011 by Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
|
|
|
|
include VERSION
|
|
|
|
|
|
|
|
PACKAGE=plymouth-theme-openmamba
|
|
|
|
|
|
|
|
# system locations
|
|
|
|
prefix = /usr
|
|
|
|
exec_prefix = ${prefix}
|
|
|
|
sysconfdir = /etc
|
|
|
|
sbindir = ${exec_prefix}/sbin
|
|
|
|
bindir = ${exec_prefix}/bin
|
|
|
|
mandir = ${prefix}/usr/share/man
|
|
|
|
datadir = ${prefix}/share
|
|
|
|
initrddir = ${sysconfdir}/rc.d/init.d
|
|
|
|
sysconfigdir= ${sysconfdir}/sysconfig
|
|
|
|
localstatedir = /var
|
|
|
|
localesdir = ${datadir}/locale/
|
|
|
|
|
|
|
|
srcdir = .
|
|
|
|
|
|
|
|
DESTDIR =
|
|
|
|
INSTALL = /usr/bin/install
|
|
|
|
INSTALL_PROGRAM = ${INSTALL} -m 755
|
|
|
|
INSTALL_DATA = ${INSTALL} -m 644
|
|
|
|
INSTALL_DIR = ${INSTALL} -d -m 755
|
|
|
|
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
|
|
|
|
|
|
|
|
# package related variables
|
|
|
|
distdir = $(PACKAGE)-$(VERSION)
|
2011-12-01 18:11:57 +01:00
|
|
|
dist_archive = $(distdir).tar.xz
|
2011-12-01 18:01:55 +01:00
|
|
|
|
|
|
|
pck_catalogs := $(wildcard po/*.po)
|
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .po .mo
|
|
|
|
.po.mo:; msgfmt $< -o $@
|
|
|
|
|
|
|
|
all:
|
|
|
|
|
|
|
|
install-dirs:
|
|
|
|
$(INSTALL_DIR) $(DESTDIR)$(datadir)/plymouth/themes
|
|
|
|
|
|
|
|
install-files:
|
2011-12-01 18:11:57 +01:00
|
|
|
cp -a openmamba $(DESTDIR)$(datadir)/plymouth/themes
|
2011-12-01 18:01:55 +01:00
|
|
|
|
|
|
|
install: install-dirs install-files
|
|
|
|
|
|
|
|
dist: clean
|
|
|
|
@git log > ChangeLog.git
|
|
|
|
@mkdir /tmp/$(distdir)
|
|
|
|
@cp -a * /tmp/$(distdir)/
|
|
|
|
@rm -f $(dist_archive);\
|
2011-12-01 18:11:57 +01:00
|
|
|
tar cf - -C /tmp $(distdir) | xz -c > $(dist_archive)
|
2011-12-01 18:01:55 +01:00
|
|
|
@rm -rf /tmp/$(distdir)
|
|
|
|
@echo "file \`$(dist_archive)' created"
|
|
|
|
|
|
|
|
dist-rpm: dist
|
|
|
|
@rpm_sourcedir=`rpm --eval=%{_sourcedir}`;\
|
|
|
|
mv -f $(dist_archive) $$rpm_sourcedir;\
|
|
|
|
echo "and saved as \`$$rpm_sourcedir/$(dist_archive)'"
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(dist_archive)
|