-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
55 lines (49 loc) · 1.75 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ITEMAN Dynamic Publishing - A Perl-based dynamic publishing system for Moveble Type
# Copyright (c) 2009 ITEMAN, Inc. All rights reserved.
#
# This file is part of ITEMAN Dynamic Publishing.
#
# 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.
PLUGIN_NAME = ITEMANDynamicPublishing
PLUGIN_VERSION = $(shell grep "VERSION = '[0-9]\+\.[0-9]\+\.[0-9]\+'" $(PLUGIN_NAME).pl | sed -e 's/^.*\([0-9]\+\.[0-9]\+\.[0-9]\+\).*/\1/')
TARGETS = Changes.pod \
ITEMANDynamicPublishing.pl \
README.pod \
bin \
lib \
tmpl
all: dist
dist:
echo $(PLUGIN_NAME)-$(PLUGIN_VERSION).zip
mkdir -p build/$(PLUGIN_NAME)
cp -r $(TARGETS) build/$(PLUGIN_NAME)
mkdir -p build/$(PLUGIN_NAME)/tmp
find build/$(PLUGIN_NAME) -type d | xargs chmod 755
find build/$(PLUGIN_NAME) -type f | xargs chmod 644
chmod 755 build/$(PLUGIN_NAME)/bin/dynamic-publishing.*
mkdir dist
cd build; \
zip -r ../dist/$(PLUGIN_NAME)-$(PLUGIN_VERSION).zip $(PLUGIN_NAME)
clean:
rm -rf build
rm -rf dist
# Local Variables:
# mode: makefile-gmake
# coding: iso-8859-1
# tab-width: 4
# c-basic-offset: 4
# c-hanging-comment-ender-p: nil
# indent-tabs-mode: t
# End: