diff options
-rw-r--r-- | Makefile | 12 | ||||
-rw-r--r-- | README.makefiles | 27 | ||||
-rw-r--r-- | acf.mk | 78 | ||||
-rw-r--r-- | app/Makefile | 4 | ||||
-rw-r--r-- | app/hello.lua | 3 | ||||
-rw-r--r-- | config.mk | 10 |
6 files changed, 0 insertions, 134 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 71d678f..0000000 --- a/Makefile +++ /dev/null @@ -1,12 +0,0 @@ -PACKAGE=acf-core -VERSION=2.0 - -#SUBDIRS=app cgi-bin lib static www -SUBDIRS=app -EXTRA_DIST=README.makefiles - -# since this is top level dir we have to set SUBDIR to blank -SUBDIR= - -include config.mk -include acf.mk diff --git a/README.makefiles b/README.makefiles deleted file mode 100644 index 34c1bff..0000000 --- a/README.makefiles +++ /dev/null @@ -1,27 +0,0 @@ - -The dir locations are defined in config.mk - -The following variables may be defined: -APP_DIST: -Files are installed in ${appdir} - -LIB_DIST: -Files are installed in ${acflibdir} - -ETC_DIST: -Files are installed in ${sysconfdir} - -CGI_DIST: -Files are installed in ${cgidir} - -WWW_DIST: - -STATIC_DIST: - -EXTRA_DIST: -Files are not installed, just included in the dist package - -Finally the Makefile should contain the following line: -include ../acf.mk - -The acf.mk file contains the rules to perform the install and dist packaging. @@ -1,78 +0,0 @@ -# acf.mk - -ACF_MK_VERSION =0.2 - -SUBDIR =$(basename $(PWD)) -DISTDIR ?=$(PV) -PV =${PACKAGE}-${VERSION} -DISTFILES =$(APP_DIST) $(LIB_DIST) $(ETC_DIST) $(CGI_DIST) $(WWW_DIST)\ - $(STATIC_DIST) $(EXTRA_DIST) -TARBZ2 =$(PV).tar.bz2 -DISTPKG =$(TARBZ2) - -CP =cp -MKDIR =mkdir -TAR =tar - -MAKEFLAGS += --no-print-directory --quiet -RECURSIVE_TARGETS = $(addsuffix -recursive,all clean distdir install) - -phony += all -all: all-recursive - -phony += $(RECURSIVE_TARGETS) -$(RECURSIVE_TARGETS): - target=`echo $@ | sed 's/-recursive//'` ;\ - for dir in $(SUBDIRS) ; do \ - ( cd $$dir && $(MAKE) $$target \ - DISTDIR="$(PWD)/$(basename $(DISTDIR))" \ - DESTDIR="$(PWD)/$(basename $(DESTDIR))" \ - ) || exit 2 ;\ - done - -phony += clean -clean: - if [ -n "$(DISTPKG)" ]; then\ - $(RM) $(DISTPKG);\ - fi - if [ -n "$(DISTDIR)" ]; then\ - $(RM) -r $(DISTDIR);\ - fi - -phony += dist -dist: $(DISTPKG) - -$(TARBZ2): distdir - echo "Making $@" - $(CP) $(DISTFILES) $(DISTDIR) - $(TAR) -cjf $@ $(DISTDIR) - $(RM) -r $(DISTDIR) - -phony += distdir -distdir: distdir-recursive - if [ -z "$(DISTDIR)" ]; then \ - echo "no DISTDIR in $(SUBDIR)" ;\ - exit 2 ;\ - fi - for i in $(DISTFILES); do\ - if [ -n "$(SUBDIR)" ]; then\ - destdir=$(DISTDIR)/$(SUBDIR)/`dirname $$i`;\ - else \ - destdir=$(DISTDIR);\ - fi;\ - $(MKDIR) -p "$$destdir" &&\ - $(CP) "$$i" "$$destdir";\ - done - -phony += pre-install-hook post-install-hook - -phony += install -install: install-recursive - if [ -n "$(APP_DIST)" ]; then\ - echo "Installing app files";\ - $(MKDIR) -p $(DESTDIR)/$(appdir);\ - $(CP) $(APP_DIST) $(DESTDIR)/$(appdir);\ - fi - echo "TODO: *_DIST, set permissions, set ownerships" - -.PHONY: $(phony) diff --git a/app/Makefile b/app/Makefile deleted file mode 100644 index 63df57e..0000000 --- a/app/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -APP_DIST=hello.lua - -include ../config.mk -include ../acf.mk diff --git a/app/hello.lua b/app/hello.lua deleted file mode 100644 index a26be1e..0000000 --- a/app/hello.lua +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env lua - -print("hello world") diff --git a/config.mk b/config.mk deleted file mode 100644 index 45f4d21..0000000 --- a/config.mk +++ /dev/null @@ -1,10 +0,0 @@ -prefix=/usr -datadir=${prefix}/share -sysconfdir=${prefix}/etc -localstatedir=${prefix}/var -acfdir=${datadir}/acf -wwwdir=${acfdir}/www -cgibindir=${acfdir}/cgi-bin -appdir=${acfdir}/app -acflibdir=${acfdir}/lib -sessionsdir=${localstatedir}/lib/acf/sessions |