###################################################### # # ETC_DIR: # set this to the directory where you want your # zblog rc file to live. If you do not need the # example rc file to be installed there, and you # know that your rc is in one of zblog's standard # locations, you may leave this as it is. # ETC_DIR=$$HOME/.zblog ###################################################### # # pathnames of binaries used by ./configure # the defaults should work almost everywhere. # ZSH=/bin/zsh SED=sed DATE=date ###################################################### # # Installation customization: # the zblog script will be installed to # $(INSTALLPATH), using the $(install) utility. # the script will be install with mode $(MODE) # INSTALLPATH=$$HOME/bin install=install MODE=0700 ###################################################### # # 'make dist' customation: # # TARTYPES: # list of compression types for the created tarballs # # tar: uncompressed tarball # bz2: bzip2 compression # gz : gzip compression # # So, if you want _all_ tarball types: # TARTYPES=bz2 gz tar # TARTYPES=bz2 all: zblog zblog: zblog.in @WITH_DATE=$(DATE) \ WITH_SED=$(SED) \ WITH_ETC=$(ETC_DIR) \ WITH_ZSH=$(ZSH) \ ./configure install: all @[ -r .install_rc ] && echo "installing etc/rc.example to $(ETC_DIR)" \ && $(install) -m0644 etc/rc.example $(ETC_DIR) || exit 0 $(install) -m$(MODE) ./zblog $(INSTALLPATH) uninstall: rm -f $(INSTALLPATH)/zblog clean: find ./ -name '*~' -exec rm -f '{}' '+' rm -f zblog zblog-*.tar* .install_rc rm -f ./lib/first_*.mail dist: @for i in $(TARTYPES) ; do ./bin/createpack.sh $$i ; done