PACKAGE=Gnome-Theme-Green 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 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/background-default.jpg $(DESTDIR)$(datadir)/pixmaps/backgrounds/gnome/background-default.jpg 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."