# # Makefile for creating distribution of phpMyEdit. # Type 'make dist' for create tar-gziped and zip archiv. # # Developed by Ondrej Jombik # Based on the Makefile by Lubomir Host # Copyright (c) 2002 Platon SDG, http://www.platon.sk/ # # $Id: Makefile,v 1.3 2002/10/01 09:48:07 rajo Exp $ PACKAGE = phpMyEdit VERSION = 5.0 VERSION_DIR = 5.0 # # If you want to add directory to distribution, you must write firstly # directory name into list (with ending slash) and than files from # that directory. # DISTFILES = phpMyEdit.class.php phpMyEditSetup.php timer.class \ lang/ \ lang/PME.lang.DE.inc lang/PME.lang.EN-US.inc \ lang/PME.lang.EN.inc lang/PME.lang.FR.inc \ lang/PME.lang.IT.inc lang/PME.lang.NL.inc \ lang/PME.lang.PG.inc lang/PME.lang.SK.inc \ lang/PME.lang.SP.inc \ images/ \ images/pme-change.png images/pme-copy.png \ images/pme-delete.png images/pme-view.png \ doc/ \ doc/ChangeLog doc/README doc/AUTHORS doc/TODO \ doc/language-codes.txt # Extension of archives ZIP_EXT = .zip TGZ_EXT = .tar.gz #TAR = gtar TAR = tar ZIP = zip ZIP_ENV = -r9 GZIP_ENV = --best srcdir = . distdir = $(PACKAGE)-$(VERSION_DIR) packname = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) top_builddir = . dist: distdir GZIP=$(GZIP_ENV) $(TAR) chozf $(packname)$(TGZ_EXT) $(distdir) # ZIP=$(ZIP_ENV) $(ZIP) $(packname)$(ZIP_EXT) $(distdir) -rm -rf $(distdir) dist-all: dist distdir: $(DISTFILES) -rm -rf $(distdir) mkdir $(distdir) here=`cd $(top_builddir) && pwd`; \ top_distdir=`cd $(distdir) && pwd`; \ distdir=`cd $(distdir) && pwd`; @for file in $(DISTFILES); 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 chmod -R u=rwX,g=,o=rX $(distdir)