blob: 9fe3429a38e5c07606913c6d265bd22de3a2f638 (
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
|
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.39
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)
tar: dist
dist: clean
@git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz;
$(info $(NAME)-$(VERSION).tar.xz is ready)
|