Makefile 596 Bytes
Newer Older
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
1
# Runs 'make', 'make install', and 'make clean' in specified subdirectories
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
2 3
#SUBDIRS := src/php_top src/python_tests src/debugfs-webgui # src1
SUBDIRS := src
Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
INSTALLDIRS = $(SUBDIRS:%=install-%)
CLEANDIRS =   $(SUBDIRS:%=clean-%)

#TARGETDIR=$(DESTDIR)/www/pages

all: $(SUBDIRS)
	@echo "make all top"

$(SUBDIRS):
	$(MAKE) -C $@

install: $(INSTALLDIRS)
	echo "make install top"

$(INSTALLDIRS): 
	$(MAKE) -C $(@:install-%=%) install

clean: $(CLEANDIRS)
	@echo "make clean top"

$(CLEANDIRS): 
	$(MAKE) -C $(@:clean-%=%) clean

.PHONY: all install clean $(SUBDIRS) $(INSTALLDIRS) $(CLEANDIRS)