Commit Graph

16 Commits

Author SHA1 Message Date
Kevin Schoon c25e4a7e21 remove /bin from md5 output 2018-02-01 16:27:09 -05:00
Kevin Schoon aa645b4c55 output md5 hashes 2018-02-01 16:16:55 -05:00
Kevin Schoon 5b39aa365e improve build support 2018-02-01 16:11:44 -05:00
Kevin Schoon 06bec467f1 support OSX cross compilation 2018-02-01 15:20:22 -05:00
Christos Kontas abed8fd61c Makefile: use automatic variables for bindata.go
This change can easily let us expand the rule by adding more files as a
dependency.  Even better, we can define a variable to hold all these
external, binary resources.
2018-02-01 10:20:12 +01:00
Christos Kontas a9172824a2 Makefile: shorten recipe using default target var 2018-02-01 10:13:45 +01:00
Christos Kontas 858872bab8 Makefile: split the target from the PHONY rule
A PHONY rule is executed always.  The target of the `readme' rule is to
create the `www/data/readme.json', which depends only on `README.md'.
If we specify these dependencies separately, make(1) won't build the
`readme.json', if it's not necessary.  And yet, we can refer to this
creation by typing `make readme'.
2018-02-01 10:10:24 +01:00
Christos Kontas f8a7c65bf3 Makefile: explicitly create bin/, if necessary
Most of the go(1) tools will create the missing directory.
Yet, it is better to define this dependency explicitly to make(1),
to avoid unnecessary surprises.

Another useful feature of make(1) is the multiple targets per rule.
This way, we can have the same action and it is the target the variable
of the rule, anymore.
2018-02-01 10:07:57 +01:00
Christos Kontas 295f0d024a Makefile: add missing dependency for `www/data' 2018-02-01 10:00:53 +01:00
Christos Kontas 1bb38796ad Makefile: simplify `clean' rule
There is a special rule in make(1) to denote that we don't care about
the result of a command.  Additionally, we can also instruct rm(1) not
to complain when it didn't find a file/directory to remove.

As a final touch, there is no point of having 2 shell executions to
remove 2 or more files.  We can compress these 2 recipes into a single
one.

Reference:
   https://www.gnu.org/software/make/manual/html_node/Errors.html
2018-02-01 09:56:51 +01:00
Kevin Schoon af18268be6 add vet to test 2018-01-26 23:34:21 +08:00
Kevin Schoon d02072888d update Makefile 2018-01-23 00:27:35 +08:00
Kevin Schoon 1d74a3356d add docs 2018-01-22 23:07:58 +08:00
Kevin Schoon 7b1bf2980c add hugo sources 2018-01-22 22:59:03 +08:00
Kevin Schoon 0ada6d0972 fix version 2018-01-21 23:38:17 +08:00
Kevin Schoon 85c4f20f8c refactor run loop, add simple libnotify support, improve notifications, binpack tomato image 2018-01-21 18:35:03 +08:00