-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (43 loc) · 951 Bytes
/
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
# Currently, this Makefile has only a "dist" target.
PACKAGE = ajaxslt
VERSION = 0.8
DIST_FILES = \
AUTHORS \
ChangeLog \
COPYING \
Makefile \
README \
TODO \
dom.js \
dom_unittest.html \
dom_unittest.js \
simplelog.js \
test/xpath.html \
test/xpath_script.js \
test/xslt.html \
test/xslt_script.js \
unittestsuite.html \
util.js \
xmltoken.js \
xmltoken_unittest.html \
xmltoken_unittest.js \
xpathdebug.js \
xpath.js \
xpath_unittest.html \
xpath_unittest.js \
xslt.js \
xslt_unittest.html \
xslt_unittest.js \
DIST_NAME = $(PACKAGE)-$(VERSION)
DIST_DIR = /tmp/$(DIST_NAME)
dist: clobber $(DIST_FILES)
rm -rf $(DIST_DIR)
mkdir $(DIST_DIR)
cp -pr $(DIST_FILES) $(DIST_DIR)
chmod -R a+r $(DIST_DIR)
chmod -R u+w $(DIST_DIR)
chmod -R go-w $(DIST_DIR)
cd $(DIST_DIR)/.. ; tar cvf $(DIST_NAME).tar $(DIST_NAME) ; gzip $(DIST_NAME).tar
mv $(DIST_DIR).tar.gz .
rm -rf $(DIST_DIR)
clobber: