-test: $(deb)
- dpkg -i $(deb)
- if [[ -e target.cy ]]; then cycript -c target.cy && echo; fi
- if [[ -e jquery.js ]]; then $(time) cycript -c jquery.js >jquery.cyc.js; gzip -9c jquery.cyc.js >jquery.cyc.js.gz; wc -c jquery.{mam,gcc,cyc,bak,yui}.js; wc -c jquery.{cyc,gcc,bak,mam,yui}.js.gz; fi
- if [[ -e test.cy ]]; then cycript test.cy; fi
+test: cycript
+ if [[ -e target.cy ]]; then ./cycript -c target.cy && echo; fi
+ if [[ -e jquery.js ]]; then $(time) ./cycript -c jquery.js >jquery.cyc.js; gzip -9c jquery.cyc.js >jquery.cyc.js.gz; wc -c jquery.{mam,gcc,cyc,bak,yui}.js; wc -c jquery.{cyc,gcc,bak,mam,yui}.js.gz; fi
+ if [[ -e test.cy ]]; then ./cycript test.cy; fi
+
+install: cycript libcycript.la
+ $(INSTALL) -d $(DESTDIR)$(bindir) $(DESTDIR)$(libdir)
+ $(libtool) --mode=install $(INSTALL_PROGRAM) libcycript.la $(DESTDIR)$(libdir)/libcycript.la
+ $(libtool) --mode=install $(INSTALL_PROGRAM) cycript $(DESTDIR)$(bindir)/cycript
+ifneq ($(CY_ATTACH_GROUP),)
+ chgrp $(CY_ATTACH_GROUP) $(DESTDIR)$(bindir)/cycript
+ chmod g+s $(DESTDIR)$(bindir)/cycript
+endif