OSDN Git Service

www: announce the update of some util-linux manpages to 2.34.
[linuxjm/jm.git] / Makefile.dist
index a5d1093..a2cf472 100644 (file)
@@ -1,6 +1,3 @@
-#
-# $Id: Makefile.dist,v 1.5 2007/10/28 17:27:10 jm Exp $
-#
 include ./JM.rules
 
 #
@@ -10,24 +7,28 @@ README = dist/README
 INSTALL = dist/INSTALL
 
 ifndef DIST
-       DIST := man-pages-ja-$(shell date +"%Y%m%d")
+       DIST := man-pages-ja-$(shell env LANG=C date +"%Y%m%d")
 endif
-DATE := $(shell date "+%Yǯ%m·î%dÆü")
+DATE := $(shell env LANG=C date "+%b %d, %Y")
 
-all:
+all: $(README) $(INSTALL)
+
+$(README): $(README).in
        perl -pe "s/\@DATE\@/$(DATE)/;\
        s/\@FILENAME\@/$(DIST).tar.gz/" $(README).in > $(README)
+
+$(INSTALL): $(INSTALL).in
        perl -pe "s/\@DIRNAME\@/$(DIST)/" $(INSTALL).in > $(INSTALL)
 
 install: all
        mkdir -p $(TMPDIR)/$(DIST)
-       if [ -x $(MIRRORDIR) ]; then \
-           $(MIRRORDIR) -v --no-netrc --keep-files \
-           --exclude-regexp '*CVS*' \
-           --exclude-regexp '*.in' \
-           --exclude .cvsignore \
-           --exclude ChangeLog \
-           dist $(TMPDIR)/$(DIST) \
+       if [ -x $(RSYNC) ]; then \
+           $(RSYNC) -a -v \
+           --exclude='*CVS*' \
+           --exclude='*.in' \
+           --exclude='.cvsignore' \
+           --exclude=ChangeLog \
+           dist/ $(TMPDIR)/$(DIST) \
        ; else \
            cp -a dist/* $(TMPDIR)/$(DIST) ;\
            find $(TMPDIR)/$(DIST) -type d -name CVS | xargs rm -rf ;\