diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2007-07-27 12:53:38 +0000 |
---|---|---|
committer | Natanael Copa <natanael.copa@gmail.com> | 2007-07-27 12:53:38 +0000 |
commit | dc53423183a0c459284ebd139022b707f01af006 (patch) | |
tree | 8a67a2904ec991028bddd429d57eec114b05baab /Makefile | |
parent | 275c80281ba2e84b8d810bdb1c2b7f8c9a4333d9 (diff) | |
download | acf-core-dc53423183a0c459284ebd139022b707f01af006.tar.bz2 acf-core-dc53423183a0c459284ebd139022b707f01af006.tar.xz |
moved core files to new dir structurev2.0_alpha1
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@219 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..73e35f4 --- /dev/null +++ b/Makefile @@ -0,0 +1,53 @@ +APP_NAME=core +PACKAGE=acf-$(APP_NAME) +VERSION=2.0_alpha1 + +P=$(PACKAGE)-$(VERSION) +DISTDIR:=$(PWD)/$(P) +DISTPKG=$(P).tar.bz2 + +SUBDIRS=app lib www +EXTRA_DIST=ChangeLog Makefile README TODO + +DISTFILES=$(EXTRA_DIST) + +CP=cp +TAR=tar + +RECURSIVE_TARGETS=all-recursive install-recursive distdir-recursive \ + clean-recursive +phony+=$(RECURSIVE_TARGETS) + +export DISTDIR DESTDIR +$(RECURSIVE_TARGETS): + target=`echo $@ | sed 's/-recursive//'`;\ + for dir in $(SUBDIRS); do\ + ( cd $$dir && $(MAKE) $$target ) || exit 1;\ + done + +phony += all +all: all-recursive + +phony += clean +clean: clean-recursive + rm -rf $(DISTDIR) $(DISTPKG) + +phony += distdir +distdir: distdir-recursive $(DISTFILES) + for i in $(DISTFILES) ; do\ + dest="$(DISTDIR)/$$i";\ + mkdir -p `dirname $$dest` &&\ + $(CP) "$$i" "$$dest" || exit 1;\ + done + +phony += dist +dist: $(DISTPKG) + +$(DISTPKG): distdir $(DISTFILES) + $(TAR) -chjf $@ $(P) + rm -r $(DISTDIR) + +phony+=install +install: install-recursive + +.PHONY: $(phony) |