aboutsummaryrefslogtreecommitdiff
path: root/Make.rules
blob: 55cc27126ee3f58c7c67a5be208c5e77944a2b22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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

Return to:

Send suggestions and report system problems to the System administrator.