2 .PHONY
=all clean distclean help package upload upload_x86 upload_x86_64
4 MAIN_VER
:=$(shell src
/chere
-v | sed
"s/.*version //g")
8 MAN_IPATH
:=usr
/share
/man
/man1
10 HAVE_BIN
=$(wildcard $(BIN_IPATH
))
11 HAVE_MAN
=$(wildcard $(MAN_IPATH
))
13 ifneq ($(HAVE_BIN
),$(BIN_IPATH
))
14 $(shell mkdir
-p
$(BIN_IPATH
))
16 ifneq ($(HAVE_MAN
),$(MAN_IPATH
))
17 $(shell mkdir
-p
$(MAN_IPATH
))
20 INSTALL_ITEMS
:=$(BIN_IPATH
)/chere
$(BIN_IPATH
)/xhere
$(MAN_IPATH
)/chere
.1.gz
29 @echo
all distclean clean help package
31 TARBALL
:=$(PKG_NAME
)-$(MAIN_VER
)-$(CYG_VER
).
tar.bz2
32 package
: clean $(TARBALL
)
35 lftp
-c
"open -u cygwin, sftp://cygwin.com/; cd $*/release/$(PKG_NAME); put $(TARBALL); put setup.hint; put /dev/null -o !ready"
37 upload
: upload_x86 upload_x86_64
39 %.
tar.bz2
: $(INSTALL_ITEMS
)
42 # Remove emacs temporaries
44 find
-name
"*~" | xargs
-r
rm
47 find
$(BIN_IPATH
) -name
"*" -type f | xargs
-r
rm
48 find
$(MAN_IPATH
) -name
"*" -type f | xargs
-r
rm
50 $(BIN_IPATH
)/%here
: %here