diff Makefile @ 1:48bfb59ec26d

Add a README file and Makefile
author Guido Berhoerster <guido+sonar-openbox-theme@berhoerster.name>
date Mon, 09 Mar 2015 11:17:51 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Makefile	Mon Mar 09 11:17:51 2015 +0100
@@ -0,0 +1,53 @@
+#
+# Copyright (C) 2010 Guido Berhoerster <guido+sonar-openbox-theme@berhoerster.name>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
+# USA.
+#
+
+NAME =		sonar-openbox-theme
+THEME_NAME =	Sonar
+VERSION =	1
+DISTNAME =	$(NAME)-$(VERSION)
+
+PAX :=		pax
+GZIP :=		gzip
+INSTALL :=	install
+INSTALL.data :=	$(INSTALL) -D -m 0644
+
+DESTDIR ?=
+prefix ?=	/usr/local
+themesdir ?=	$(prefix)/share/themes
+
+.DEFAULT_TARGET = all
+
+.PHONY: all clean clobber dist install
+
+all:
+
+install:
+	for theme_file in $(XFWM4_THEME_DIR)/themerc $(XFWM4_DECORATION) \
+	        $(XFWM4_BUTTONS); do \
+	    $(INSTALL.data) $${theme_file} \
+	            "$(DESTDIR)$(themesdir)/$${theme_file}"; \
+	done
+
+clean:
+
+clobber: clean
+
+dist: all
+	$(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \
+	    -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz