citusdata / pg_shard

ATTENTION: pg_shard is superseded by Citus, its more powerful replacement
https://github.com/citusdata/citus
GNU Lesser General Public License v3.0
1.06k stars 63 forks source link

Tweak Makefile version detection #84

Closed jasonmp85 closed 9 years ago

jasonmp85 commented 9 years ago

As reported here, older versions of make don't support else if-like constructs, so we need to just use plain if statements or nest them if absolutely necessary.

Additionally, we were missing the logic to set MAJORVERSION based on VERSION if the former is not present. Older PostgreSQL versions need this, so I've added it.

Fixes #83.