annotate Makefile @ 2:c11b9a2dec0b version-1

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