Commit 282d068a authored by Ted Trask's avatar Ted Trask

Move the lib files into a subdirectory in preparation for creating a generic controller/model

parent b9926ecb
include config.mk
APP_NAME=db
PACKAGE=acf-$(APP_NAME)
VERSION=0.1.0
LIB_DIST=dbcontrollerfunctions.lua\
dbmodelfunctions.lua\
db-*-html.lsp\
APP_DIST=db* \
EXTRA_DIST=README Makefile
DISTFILES=$(LIB_DIST) $(EXTRA_DIST)
SUBDIRS=lib
EXTRA_DIST=README Makefile config.mk
DISTFILES=$(APP_DIST) $(EXTRA_DIST)
install_dir=$(DESTDIR)/$(acflibdir)
dist_dir=$(DISTDIR)/$(notdir $(PWD))
install_dir=$(DESTDIR)/$(appdir)/$(APP_NAME)
phony+=all
all:
......@@ -16,23 +16,18 @@ all:
phony+=clean
clean:
phony+=distdir
distdir: $(DISTFILES)
mkdir -p "$(dist_dir)"
for i in $(DISTFILES); do\
dest=`dirname "$(dist_dir)/$$i"`;\
mkdir -p "$$dest";\
cp "$$i" "$$dest";\
export DISTDIR DESTDIR
phony+=install-recursive
install-recursive:
for dir in $(SUBDIRS); do\
( cd $$dir && $(MAKE) install ) || exit 1;\
done
phony+=install
install:
mkdir -p $(install_dir)
for i in $(LIB_DIST); do\
dest=`dirname "$(install_dir)/$$i"`;\
mkdir -p "$$dest";\
cp "$$i" "$$dest";\
done
install: install-recursive $(SUBDIRS)
mkdir -p "$(install_dir)"
cp -a $(APP_DIST) "$(install_dir)"
include config.mk
.PHONY: $(phony)
ACF library for editing databases
include ../config.mk
LIB_DIST=dbcontrollerfunctions.lua\
dbmodelfunctions.lua\
db-*-html.lsp\
EXTRA_DIST=Makefile
DISTFILES=$(LIB_DIST) $(EXTRA_DIST)
install_dir=$(DESTDIR)/$(acflibdir)
dist_dir=$(DISTDIR)/$(notdir $(PWD))
phony+=all
all:
phony+=clean
clean:
phony+=distdir
distdir: $(DISTFILES)
mkdir -p "$(dist_dir)"
cp -a $(DISTFILES) "$(dist_dir)"
phony+=install
install:
mkdir -p "$(install_dir)"
cp -a $(LIB_DIST) "$(install_dir)"
.PHONY: $(phony)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment