comparison 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
comparison
equal deleted inserted replaced
0:d2f7d0ecf733 1:48bfb59ec26d
1 #
2 # Copyright (C) 2010 Guido Berhoerster <guido+sonar-openbox-theme@berhoerster.name>
3 #
4 # This program is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License
6 # as published by the Free Software Foundation; either version 2
7 # of the License, or (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
17 # USA.
18 #
19
20 NAME = sonar-openbox-theme
21 THEME_NAME = Sonar
22 VERSION = 1
23 DISTNAME = $(NAME)-$(VERSION)
24
25 PAX := pax
26 GZIP := gzip
27 INSTALL := install
28 INSTALL.data := $(INSTALL) -D -m 0644
29
30 DESTDIR ?=
31 prefix ?= /usr/local
32 themesdir ?= $(prefix)/share/themes
33
34 .DEFAULT_TARGET = all
35
36 .PHONY: all clean clobber dist install
37
38 all:
39
40 install:
41 for theme_file in $(XFWM4_THEME_DIR)/themerc $(XFWM4_DECORATION) \
42 $(XFWM4_BUTTONS); do \
43 $(INSTALL.data) $${theme_file} \
44 "$(DESTDIR)$(themesdir)/$${theme_file}"; \
45 done
46
47 clean:
48
49 clobber: clean
50
51 dist: all
52 $(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \
53 -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz