4 ms·
I absolutely love the bsd.*.mk system. It's not just that the tool is simple, but that the average makefile is very short and simple. Here, a few examples: (
by clarry 12y ago
I absolutely love the bsd.*.mk system. It's not just that the tool is simple, but that the average makefile is very short and simple. Here, a few examples:
(netcat) http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.bin/nc/Makefile?rev=1.6 http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr....
(inetd) http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.sbin/inetd/Makefile?rev=1.4 http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr....
(ntpd) http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.sbin/ntpd/Makefile?rev=1.12 http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr....
(httpd) http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.sbin/httpd/Makefile?rev=1.26 http://cvsweb.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr....
- byuu 12y agoThanks! Those do look nice. But I think I could do the same as you with GNU make and rule pattern matching (I use a Makefile library for compiler detection and some useful functions, but stop short of including automatic rule generation, in case I want to customize things.)