Makefile 538 Bytes
Newer Older
1 2 3
APP_NAME=db
PACKAGE=acf-$(APP_NAME)
VERSION=0.1.0
4

5
APP_DIST=db* \
6

7 8 9
SUBDIRS=lib
EXTRA_DIST=README Makefile config.mk
DISTFILES=$(APP_DIST) $(EXTRA_DIST)
10

11
install_dir=$(DESTDIR)/$(appdir)/$(APP_NAME)
12 13 14 15 16 17 18

phony+=all
all:

phony+=clean
clean:

19 20 21 22 23
export DISTDIR DESTDIR
phony+=install-recursive
install-recursive:
	for dir in $(SUBDIRS); do\
		( cd $$dir && $(MAKE) install ) || exit 1;\
24 25 26
	done

phony+=install
27 28 29
install: install-recursive $(SUBDIRS)
	mkdir -p "$(install_dir)"
	cp -a $(APP_DIST) "$(install_dir)"
30

31
include config.mk
32 33

.PHONY: $(phony)