49 lines
1.6 KiB
Makefile
49 lines
1.6 KiB
Makefile
PACKAGE=gnome-theme-openmamba
|
|
|
|
distdir = $(PACKAGE)-$(VERSION)
|
|
dist_archive = $(distdir).tar.bz2
|
|
|
|
include VERSION
|
|
|
|
#Directory
|
|
datadir = /usr/share
|
|
|
|
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}
|
|
|
|
|
|
|
|
install-dirs:
|
|
@$(INSTALL_DIR) $(DESTDIR)$(datadir)/themes/openmamba-green/metacity-1
|
|
@$(INSTALL_DIR) $(DESTDIR)$(datadir)/themes/openmamba-green/gtk-2.0
|
|
@$(INSTALL_DIR) $(DESTDIR)$(datadir)/pixmaps/backgrounds/gnome/openmamba-green
|
|
@$(INSTALL_DIR) $(DESTDIR)$(datadir)/gnome-background-properties
|
|
install: install-dirs
|
|
$(INSTALL_DATA) src/openmamba-green/metacity-1/* $(DESTDIR)$(datadir)/themes/openmamba-green/metacity-1
|
|
$(INSTALL_DATA) src/openmamba-green/gtk-2.0/* $(DESTDIR)$(datadir)/themes/openmamba-green/gtk-2.0
|
|
$(INSTALL_DATA) src/openmamba-green/index.theme $(DESTDIR)$(datadir)/themes/openmamba-green/
|
|
$(INSTALL_DATA) src/openmamba-green.jpg $(DESTDIR)$(datadir)/pixmaps/backgrounds/gnome/openmamba-green/openmamba-green.jpg
|
|
$(INSTALL_DATA) src/gnome-openmamba-green.xml $(DESTDIR)$(datadir)/gnome-background-properties/gnome-openmamba-green.xml
|
|
|
|
clean:
|
|
rm -f $(dist_archive)
|
|
|
|
dist: clean
|
|
#@git clean -f
|
|
#@git log > ChangeLog
|
|
@mkdir /tmp/$(distdir)
|
|
@cp -a * /tmp/$(distdir)/
|
|
@rm -f $(dist_archive);\
|
|
tar cf - -C /tmp $(distdir) | bzip2 -9 -c > $(dist_archive)
|
|
@rm -rf /tmp/$(distdir)
|
|
@echo "file \`$(dist_archive)' created"
|
|
|
|
dist-rpm: dist
|
|
@rpm_sourcedir=`rpm --eval=%{_sourcedir}`;\
|
|
mv -f $(PACKAGE)-$(VERSION).tar.bz2 $$rpm_sourcedir;\
|
|
echo "File $$rpm_sourcedir/$(PACKAGE)-$(VERSION).tar.bz2 created."
|