summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8acae4dad28bf250b4220b94fcd4b0a08b5459c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
SUBDIRS = cgi-bin
     
.PHONY: subdirs $(SUBDIRS)
     
subdirs: $(SUBDIRS)
     
$(SUBDIRS):
	$(MAKE) -C $@
     
INSTALLDIRS = $(SUBDIRS:%=install-%)

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

.PHONY: subdirs $(INSTALLDIRS)

all:

install: $(INSTALLDIRS)
	install -d $(DESTDIR)/usr/bin/
	install mat $(DESTDIR)/usr/bin/
	install -d $(DESTDIR)/usr/lib/netizen-mat/
	install authenticate_session $(DESTDIR)/usr/lib/netizen-mat/