summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4219cf0d37bb8fc603dcb5c679a605914ec89955 (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 info
     
.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/