summaryrefslogtreecommitdiff
path: root/progs/Makefile
blob: f925de5860b8c42d0dbc431f5f465f4a42e96963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# progs/Makefile

TOP = ..

include $(TOP)/configs/current

SUBDIRS = $(PROGRAM_DIRS)


default: $(TOP)/configs/current
	@for dir in $(SUBDIRS) ; do \
		if [ -d $$dir ] ; then \
			pushd $$dir ; \
			make ; \
			popd ; \
		fi \
	done


clean:
	@for dir in $(SUBDIRS) ; do \
		if [ -d $$dir ] ; then \
			pushd $$dir ; \
			make clean; \
			popd ; \
		fi \
	done