1NINSTALL	= ../../ninstall
2
3PROG =	netmagis-test
4FILES =	cgi
5TESTS =	*.test
6DUMP =	netmagis-2.1.1.dump
7
8install:
9	@echo ">>> Making install in `pwd`"
10	mkdir -p $(DESTDIR)$(BINDIR)
11	mkdir -p $(DESTDIR)$(NMLIBDIR)/tests
12	mkdir -p $(DESTDIR)$(NMVARDIR)/tests
13	$(NINSTALL) -m 0755 -e "s|%BINDIR%|$(BINDIR)|" \
14			    -e "s|%NMLIBDIR%|$(NMLIBDIR)|" \
15			    -e "s|%NMVARDIR%|$(NMVARDIR)|" \
16			    -e "s|%NMCGIDIR%|$(NMCGIDIR)|" \
17			    $(SUBST) $(PROG) $(DESTDIR)$(BINDIR)
18	$(NINSTALL) -m 0755 $(SUBST) $(FILES) $(DESTDIR)$(NMLIBDIR)/tests
19	$(NINSTALL) -m 0644 -e "s|%BINDIR%|$(BINDIR)|" \
20			    -e "s|%NMLIBDIR%|$(NMLIBDIR)|" \
21			    -e "s|%NMVARDIR%|$(NMVARDIR)|" \
22			    -e "s|%NMCGIDIR%|$(NMCGIDIR)|" \
23			    -e "s|%NMXMPDIR%|$(NMXMPDIR)|" \
24			    $(SUBST) $(TESTS) $(DESTDIR)$(NMLIBDIR)/tests
25	install -m 0644 $(DUMP) $(DESTDIR)$(NMLIBDIR)/tests
26
27clean:
28