blob: 7ee19e73a45434d128a3e792cd375559e1c13027 (
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
|
RPM ?= $(HOME)/rpm
PREFIX = /usr
BINDIR = $(PREFIX)/bin
DATADIR = $(PREFIX)/share
fake_packages_dir = $(DATADIR)/perl_checker/fake_packages
PERL_CHECKER_TARGET = native-code
PERL_CHECKER_VERSION = 1.2.16
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: clean
svn export -q -rBASE . perl_checker-$(PERL_CHECKER_VERSION)
tar cfj perl_checker-$(PERL_CHECKER_VERSION).tar.bz2 perl_checker-$(PERL_CHECKER_VERSION)
rm -rf perl_checker-$(PERL_CHECKER_VERSION)
|