blob: 8fbd2895ba5e9ff9c5b0c96bb43c68f06f81ee9e (
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
|
NAME = perl-MDK-Common
TAR = $(NAME).tar.bz2
PREFIX = /usr
BINDIR = $(PREFIX)/bin
INSTALLSITEARCH = $(shell eval "`perl -V:installsitelib`"; echo $$installsitelib | sed 's,/usr,$(PREFIX),')
GENERATED = MDK/Common.pm index.html
all: $(GENERATED) test
index.html: MDK/Common.pm
pod2html $< > $@
MDK/Common.pm: %: %.pl
perl $< > $@
test:
./perl_checker MDK/Common/*.pm
clean:
rm -f $(GENERATED)
find -name "*~" | xargs rm -rf
install: clean all
install -d $(BINDIR) $(INSTALLSITEARCH)/MDK/Common
install perl_checker $(BINDIR)
install -m 644 MDK/Common.pm $(INSTALLSITEARCH)/MDK
install -m 644 MDK/Common/*.pm $(INSTALLSITEARCH)/MDK/Common
rpm: update tar build commit
update:
cvs update
commit:
cvs commit
tar: clean
cd .. ; tar cf - $(NAME) | bzip2 -9 >$(TAR)
build: MDK/Common.pm
cp -f ../$(TAR) $(RPM)/SOURCES
perl -I. -MMDK::Common -pe 's/THEVERSION/$$MDK::Common::VERSION/' $(NAME).spec > $(RPM)/SPECS/$(NAME).spec
-rpm -ba $(RPM)/SPECS/$(NAME).spec
rm -f ../$(TAR)
|