File: Makefile

package info (click to toggle)
libnet-irc-ruby 0.14-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 248 kB
  • ctags: 134
  • sloc: ruby: 1,295; makefile: 87
file content (32 lines) | stat: -rw-r--r-- 823 bytes parent folder | download | duplicates (4)
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

DISTFILES = $(shell cat MANIFEST)
HTMLDIR = /home/iga/public_html/ruby
DATE = $(shell date +%Y%m%d)
VER=SNAPSHOT-$(DATE)

archivedir = .
distdir = ruby-irc-$(VER)
distfile = ruby-irc-$(VER)
srcdir = .
TAR = tar
GZIP_ENV = --best
dist: distdir
	-chmod -R a+r $(distdir)
	GZIP=$(GZIP_ENV) $(TAR) chzf $(archivedir)/$(distfile).tar.gz $(distdir)
	-rm -rf $(distdir)
	ls -l $(archivedir)/$(distfile).tar.gz
	md5sum $(archivedir)/$(distfile).tar.gz
distdir: MANIFEST $(DISTFILES)
	-rm -rf $(distdir)
	mkdir $(distdir)
	-chmod 777 $(distdir)
	@for file in $(DISTFILES); do \
	  d=$(srcdir); \
	  if test -d $$d/$$file; then \
	    cp -pr $$d/$$file $(distdir)/$$file; \
	  else \
	    test -f $(distdir)/$$file \
	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
	    || cp -pP $$d/$$file $(distdir) || :; \
	  fi; \
	done