aboutsummaryrefslogtreecommitdiff
path: root/Make.rules
blob: 407f51b8c2dd6268a446fb11f073416896b01004 (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
dist: distclean
	perl Makefile.PL
	make -f Makefile
	make -f Makefile dist

distclean:
	@rm -f *.tar.gz *.tar.gz.sig

publish:
	@s=`awk 'NF==3 && /=>/ { sub(/ *,/,"",$$3); \
                                if ($$1 == "'\''NAME'\''") \
                                 name=$$3;          \
                                else if ($$1 == "'\''VERSION'\''") \
                                 version=$$3; }; \
                END { if (name && version) { \
	                s = name "-" version ".tar.gz"; \
                        gsub(/'\''/, "", s); \
                        print s; \
                      } } ' Makefile.PL`; \
        if test -n "$$s"; then \
          echo $(GNUPLOAD) $$s; \
	  $(GNUPLOAD) $$s; \
        fi

Makefile: Makefile.PL
	perl Makefile.PL

install: Makefile
	make -f Makefile install
	

Return to:

Send suggestions and report system problems to the System administrator.