blob: ab0f956a217c7c5321980be4ec34a827b6bb54da (
plain)
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
56
57
58
59
60
|
RPM ?= $(HOME)/rpm
PREFIX = /usr
BINDIR = $(PREFIX)/bin
DATADIR = $(PREFIX)/share
fake_packages_dir = $(DATADIR)/perl_checker/fake_packages
PERL_CHECKER_TARGET = native-code
VERSION = 1.2.17
NAME = perl_checker
FILES-perl_checker = AUTHORS COPYING README.emacs Makefile misc src fake_packages
.PHONY: src
all: src/perl_checker test
src/perl_checker:
$(MAKE) -C src build_ml perl_checker.html $(PERL_CHECKER_TARGET) fake_packages_dir=$(fake_packages_dir) DEBUG=0
test: src/perl_checker
$(MAKE) -C src/test
clean:
rm -f src/perl_checker *.tar.* .perl_checker.cache lib
$(MAKE) -C src clean
find -name "*~" | xargs rm -rf
install: clean all
$(MAKE) -C misc install
install src/perl_checker $(DESTDIR)$(BINDIR)
install -d $(DESTDIR)$(fake_packages_dir)
cd fake_packages ; tar c `find . -name "*.pm"` | tar xC $(DESTDIR)$(fake_packages_dir)
update:
svn update
commit:
svn commit
tar: dist
dist: clean
rm -rf ../$(NAME)-$(VERSION).tar*
@if [ -e ".svn" ]; then \
$(MAKE) dist-svn; \
elif [ -e ".git" ]; then \
$(MAKE) dist-git; \
else \
echo "Unknown SCM (not SVN nor GIT)";\
exit 1; \
fi;
$(info $(NAME)-$(VERSION).tar.xz is ready)
dist-svn:
svn export -q -rBASE . $(NAME)-$(VERSION)
tar cfj $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(PERL_CHECKER_VERSION)
rm -rf $(NAME)-$(VERSION)
dist-git:
@git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz >../$(NAME)-$(VERSION).tar.xz;
|