Makefile need love too

Lots of discussion has take place in #320 

New make build system.  This **REQURES** **gmake** to work and with this we have pushed almost all the logic about build the code into a single file src/Makefile 

* The Makefile is designed for developers other people that like playing with pointy dangerous things. 
* install.sh is designed for users and should be the supported method for install. 

I am sure it will need more work and I am creating the Pull Request to get more people to try it out and report back.  


I don't think software should touch uid 0 and anything to do with it.  We should use wheel or what ever group has that gid on the platform.  



> On Oct 7, 2014, at 10:04 AM, ddpbsd <notifications@github.com> wrote:
> 
> In src/Makefile:
> 
> > +
> > +
> > +.PHONY: build
> > +build:: ${TARGET}
> > +	@echo
> > +	${QUIET_NOTICE}
> > +	@echo "Done building ${TARGET}"
> > +	${QUIET_ENDCOLOR}
> > +	@echo
> > +
> > +
> > +.PHONY: install install-agent install-server install-local install-hybrid
> > +install: install-${TARGET}
> > +
> > +install-agent: install-common
> > +	install -m 0550 -o root -g root ossec-agentd ${PREFIX}/bin
> Yes, OpenBSD for instance.
> 
> —
> Reply to this email directly or view it on GitHub.