desktop-base-kde/Makefile

142 lines
4.3 KiB
Makefile
Raw Normal View History

# Makefile for desktop-base-kde
# Copyright (C) 2004-2022 by Silvan Calarco <silvan.calarco@mambasoft.it>
2011-04-27 22:05:26 +02:00
# Copyright (C) 2005-2007 by Davide Madrisan <davide.madrisan@gmail.com>
include VERSION
PACKAGE = desktop-base-kde
2011-04-27 22:05:26 +02:00
DISTROID = openmamba
RPM_VENDOR = openmamba
RPM_DISTRIBUTION = openmamba
RPM_DISTROEXT = mamba
DESKTOP_DESKTOPTHEME = openmamba
2011-04-27 22:05:26 +02:00
#SCREENSAVER = $(DISTROid).desktop
SCREENSAVER =
DISTROid = $(shell echo $(DISTROID) | tr A-Z a-z)
DISTROICON = $(DISTROid)
DESTDIR =
prefix = /usr
exec_prefix = ${prefix}
sysconfdir = /etc
sbindir = ${exec_prefix}/sbin
bindir = ${exec_prefix}/bin
datadir = ${prefix}/share
mandir = ${prefix}/usr/share/man
sysconfigdir= ${sysconfdir}/sysconfig
iconsdir = ${datadir}/icons/hicolor
kdeprefixdir = $(shell kde4-config --prefix)
kdedatadir = ${kdeprefixdir}/share
kde5datadir = ${prefix}/share
kdebindir = ${kdeprefixdir}/bin
2011-04-27 22:05:26 +02:00
kdeautostartdir = ${kdedatadir}/autostart
kdeconfigdir = ${kdedatadir}/config
kde5configdir = ${sysconfdir}/xdg
2012-01-30 02:40:56 +01:00
kdeappsdir = ${kdedatadir}/apps
kde5appsdir = ${prefix}/share
2011-04-27 22:05:26 +02:00
localesdir = ${kdedatadir}/locale
xdg_appsdir = ${datadir}/applications
xdg_directorydir = ${datadir}/desktop-directories
xdg_menudir = ${sysconfdir}/xdg/menus
xdg_mergedmenudir = $(xdg_menudir)/applications-merged
distrorootdir = ${datadir}/$(DISTROid)
distrobindir = ${distrorootdir}/bin
distrosrpmsdir = ${distrorootdir}/SRPMS
distrokdedir = ${distrorootdir}/kde
srcdir = .
INSTALL = /usr/bin/install
INSTALL_PROGRAM = ${INSTALL} -m 755
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_DIR = ${INSTALL} -d -m 755
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
#pck_srpms = flashplugin jre msttcorefonts win32codecs
pck_srpms = flashplugin msttcorefonts win32codecs skype
pck_infiles := $(wildcard kde/config/*.in \
kde/scripts/*.in \
SRPMS/*/*.in)
pck_sysconfigfile := distroutils.sysconfig
distdir = $(PACKAGE)-$(VERSION)
dist_archive = $(distdir).tar.bz2
pck_catalogs := $(wildcard mambabase/po/*.po)
pck_catalogs1 := $(wildcard mambawelcome/po/*.po)
pck_catalogs2 := $(wildcard bootrecover/po/*.po)
.SUFFIXES:
.SUFFIXES: .in .po .mo
.in:; @echo "generating $@..."; \
sed "s,@distroID@,$(DISTROID),g;\
s,@distroid@,$(DISTROid),g;\
s,@distroicon@,$(DISTROICON),g;\
s,@distribution@,$(RPM_DISTRIBUTION),g;\
s,@distroext@,$(RPM_DISTROEXT),g;\
s,@vendor@,$(RPM_VENDOR),g;\
s,@sysconfigfile@,$(SYSCONFIGFILE),g;\
s,@datadir@,${datadir},g;\
s,@distrobindir@,$(distrobindir),g;\
s,@distrokdedir@,$(distrokdedir),g;\
s,@desktoptheme@,$(DEFAULT_DESKTOPTHEME),g;\
2011-04-27 22:05:26 +02:00
s,@screensaver@,${SCREENSAVER},g;" $< > $@
all: dist-update locales
2011-04-27 22:05:26 +02:00
dist-update: $(pck_infiles:.in=)
.po.mo:; msgfmt $< -o $@
locales: $(pck_catalogs:.po=.mo) $(pck_catalogs1:.po=.mo) $(pck_catalogs2:.po=.mo)
install-kde-distro-addons: dist-update
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/pam.d
@$(INSTALL_DIR) $(DESTDIR)$(sysconfdir)/sudoers.d/
@$(INSTALL_DIR) $(DESTDIR)$(bindir)
@$(INSTALL_DIR) $(DESTDIR)$(datadir)
@$(INSTALL_DIR) $(DESTDIR)$(sbindir)
@$(INSTALL_DIR) $(DESTDIR)$(kde5datadir)
@$(INSTALL_DIR) $(DESTDIR)$(kde5configdir)
@$(INSTALL_DIR) $(DESTDIR)$(kde5appsdir)/color-schemes
@$(INSTALL_DIR) $(DESTDIR)$(kde5appsdir)/konqueror/profiles
@$(INSTALL_DIR) $(DESTDIR)$(kde5appsdir)/konsole
$(INSTALL_DATA) kde/config/kscreenlockerrc $(DESTDIR)$(kde5configdir)/kscreenlockerrc
$(INSTALL_DATA) kde/config/powerdevilrc $(DESTDIR)$(kde5configdir)/powerdevilrc
$(INSTALL_DATA) kde/config/kwalletrc $(DESTDIR)$(kde5configdir)/kwalletrc
$(INSTALL_DATA) kde/apps/color-schemes/OpenmambaGreen.colors $(DESTDIR)$(kde5appsdir)/color-schemes/OpenmambaGreen.colors
2011-04-27 22:05:26 +02:00
install-icons:
@for i in 16x16 22x22 32x32 48x48 64x64 128x128; do \
$(INSTALL_DIR) $(DESTDIR)$(iconsdir)/$$i/apps/; \
done
install: $(pck_infiles:.in=) \
install-kde-distro-addons
2011-04-27 22:05:26 +02:00
dist: clean
2011-06-02 16:10:49 +02:00
@mkdir /tmp/$(distdir)
@cp -a * /tmp/$(distdir)/
2011-04-27 22:05:26 +02:00
@rm -f $(dist_archive);\
2011-06-02 16:10:49 +02:00
tar cf - -C /tmp $(distdir) | bzip2 -9 -c > $(dist_archive)
@rm -rf /tmp/$(distdir)
2011-04-27 22:05:26 +02:00
@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)
rm -f $(patsubst %.in,%,$(pck_infiles))