blob: d70ad5570f00306e6c2295453f365dbc192b0a89 (
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
|
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
svn export -q -rBASE . $(NAME)-$(VERSION)
tar cfj $(NAME)-$(VERSION).tar.bz2 $(NAME)-$(VERSION)
rm -rf $(NAME)-$(VERSION)
|