Makefile 698 Bytes
Newer Older
1
# Runs 'make', 'make install', and 'make clean' in specified subdirectories
2
SUBDIRS := src/php_top src/python_tests src/debugfs-webgui src/jp4-canvas src/update src/eyesis4pi src/index src/pointers src/snapshot src/jp4-viewer src/photofinish src/multicam # src1
3 4 5 6 7 8 9 10 11 12 13 14
INSTALLDIRS = $(SUBDIRS:%=install-%)
CLEANDIRS =   $(SUBDIRS:%=clean-%)

#TARGETDIR=$(DESTDIR)/www/pages

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

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

install: $(INSTALLDIRS)
Andrey Filippov's avatar
Andrey Filippov committed
15
	echo "make install top"
16

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
17
$(INSTALLDIRS):
18 19 20 21 22
	$(MAKE) -C $(@:install-%=%) install

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

Oleg Dzhimiev's avatar
Oleg Dzhimiev committed
23
$(CLEANDIRS):
24 25 26 27
	$(MAKE) -C $(@:clean-%=%) clean

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