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\ APP_DIST=db* \
dbmodelfunctions.lua\
db-*-html.lsp\
EXTRA_DIST=README Makefile SUBDIRS=lib
DISTFILES=$(LIB_DIST) $(EXTRA_DIST) EXTRA_DIST=README Makefile config.mk
DISTFILES=$(APP_DIST) $(EXTRA_DIST)
install_dir=$(DESTDIR)/$(acflibdir) install_dir=$(DESTDIR)/$(appdir)/$(APP_NAME)
dist_dir=$(DISTDIR)/$(notdir $(PWD))
phony+=all phony+=all
all: all:
...@@ -16,23 +16,18 @@ all: ...@@ -16,23 +16,18 @@ all:
phony+=clean phony+=clean
clean: clean:
phony+=distdir export DISTDIR DESTDIR
distdir: $(DISTFILES) phony+=install-recursive
mkdir -p "$(dist_dir)" install-recursive:
for i in $(DISTFILES); do\ for dir in $(SUBDIRS); do\
dest=`dirname "$(dist_dir)/$$i"`;\ ( cd $$dir && $(MAKE) install ) || exit 1;\
mkdir -p "$$dest";\
cp "$$i" "$$dest";\
done done
phony+=install phony+=install
install: install: install-recursive $(SUBDIRS)
mkdir -p $(install_dir) mkdir -p "$(install_dir)"
for i in $(LIB_DIST); do\ cp -a $(APP_DIST) "$(install_dir)"
dest=`dirname "$(install_dir)/$$i"`;\
mkdir -p "$$dest";\
cp "$$i" "$$dest";\
done
include config.mk
.PHONY: $(phony) .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