6 # You must compile coreutils in advance.
7 # Use 'make all_programs' to compile binaries which are not
8 # compiled in default (like arch, hostname).
9 #srcdir = $(HOME)/JM-work/coreutils-8.16
10 srcdir = ./$(NAME)-$(V)
11 tarball = $(NAME)-$(V).tar.xz
13 PACKAGE_NAME = GNU $(NAME)
14 PACKAGE_VERSION = $(V)
15 PACKAGE_STRING = $(PACKAGE_NAME) $(PACKAGE_VERSION)
19 #------------------------------------------------------------
23 wget http://core.ring.gr.jp/pub/GNU/coreutils/$@
25 stamp-setup: $(tarball)
27 ln -s $(srcdir) source
31 && git commit -m 'Import $(PACKAGE_NAME).' > /dev/null \
33 mkdir -p source/locale/$(LANG)/LC_MESSAGES
36 stamp-configure: stamp-setup
37 @(cd source && ./configure --localedir=`pwd`/locale)
40 stamp-build: stamp-configure
44 && make all_programs \
48 #------------------------------------------------------------
50 mo-ja = source/locale/$(LANG)/LC_MESSAGES/coreutils.mo
51 gmo-ja = source/po/ja.gmo
52 po-ja = source/po/ja.po
58 $(MAKE) -C source/po $$(basename $@)
63 $(MAKE) -C help2man.ja $@ PACKAGE_VERSION=$(PACKAGE_VERSION)
66 $(MAKE) -C help2man.ja $@
69 $(MAKE) -C help2man.ja $@
72 (cd source && make distclean)
73 $(RM) stamp-configure stamp-build
78 $(RM) stamp-setup stamp-configure stamp-build
80 realclean: clean-setup clean