#
# Makefile for creating distribution of runit-startup-scripts
#
# Type 'make dist' for create tar-gziped and zip archiv.
#
# Developed by Lubomir Host 'rajo' <rajo AT platon.sk>
# Copyright (c) 2005 Platon SDG
# Licensed under terms of GNU General Public License.
# All rights reserved.
#
# $Platon: $
PACKAGE = runit-startup-scripts
VERSION = 0.1
# DISTFILES {{{
DISTFILES = README \
Makefile \
etc \
etc/runit \
etc/runit/1 \
etc/runit/2 \
etc/runit/3 \
etc/runit/ctrlaltdel \
etc/runit/stopit \
etc/runit/reboot \
etc/runit/runsvdir \
etc/runit/runsvdir/default \
etc/runit/runsvdir/single \
etc/runit/apache etc/runit/apache/run etc/runit/apache/finish \
etc/runit/getty-2 etc/runit/getty-2/run etc/runit/getty-2/finish \
etc/runit/getty-3 etc/runit/getty-3/run etc/runit/getty-3/finish \
etc/runit/getty-4 etc/runit/getty-4/run etc/runit/getty-4/finish \
etc/runit/getty-5 etc/runit/getty-5/run etc/runit/getty-5/finish \
etc/runit/gpm etc/runit/gpm/run etc/runit/gpm/finish \
etc/runit/iptotal etc/runit/iptotal/run etc/runit/iptotal/finish \
etc/runit/mysql etc/runit/mysql/run etc/runit/mysql/finish \
etc/runit/sshd etc/runit/sshd/finish etc/runit/sshd/run \
etc/runit/syslog-ng etc/runit/syslog-ng/run etc/runit/syslog-ng/finish
# DISTFILES }}}
TAR = tar
ZIP = zip
LN_S = ln -s
ZIP_ENV = -r9
GZIP_ENV = --best
srcdir = .
distdir = $(PACKAGE)-$(VERSION)
top_distdir = $(distdir)
top_builddir = .
#########
# Targets
all: dist
md5sum *$(VERSION).tar.gz *$(VERSION).zip > $(distdir).md5sums \
&& cat $(distdir).md5sums
# Clean {{{
clean: clean-dist
-rm -f $(distdir).md5sums
clean-dist:
-rm -rf $(distdir)
-rm -f $(distdir).tar.gz $(distdir).zip
# }}}
# Distribution {{{
dist: distdir
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
#ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir)
-rm -rf $(distdir)
dist-all: distdir
GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
ZIP=$(ZIP_ENV) $(ZIP) $(distdir).zip $(distdir)
-rm -rf $(distdir)
distdir: $(DISTFILES)
-rm -rf $(distdir)
mkdir $(distdir)
@here=`cd $(top_builddir) && pwd`; \
top_distdir=`cd $(distdir) && pwd`; \
distdir=`cd $(distdir) && pwd`;
@FILES=`echo "$(DISTFILES)" | awk 'BEGIN{RS=" "}{print}' | sort -u`; \
for file in $$FILES; do \
d=$(srcdir); \
if test -d $$d/$$file; then \
mkdir $(distdir)/$$file; \
else \
test -f $(distdir)/$$file \
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file ; \
fi; \
done
# }}}
# Install {{{
install:
# }}}
uninstall:
update:
@echo "If your version of $(PACKAGE) is checked out from"; \
echo "CVS Repository, 'make update' works. If you have only"; \
echo "tarball, 'make update' failed. You can update manualy"; \
echo "running"; \
echo ""; \
echo " cvs -d :pserver:anonymous@cvs.platon.sk:/home/cvs login"; \
echo " cvs -d :pserver:anonymous@cvs.platon.sk:/home/cvs co $(PACKAGE)"; \
echo "";
# next command may failed, if user doesn't have CVS version of $(PACKAGE)
-cvs -d :pserver:anonymous@cvs.platon.sk:/home/cvs update;
.PHONY: clean all
# Modeline {{{
# vim:set ts=4:
# vim600:fdm=marker fdl=0 fdc=3
# }}}
Platon Group <platon@platon.sk> http://platon.sk/
|