Skip to content

Commit

Permalink
Merge pull request #38 from potibas/makefile-posix-sed
Browse files Browse the repository at this point in the history
Make Makefile more portable
  • Loading branch information
dvarrazzo authored Apr 27, 2024
2 parents f6f94d1 + b9f3b23 commit b0045e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ EXTENSION = pgmp
MODULEDIR = $(EXTENSION)
MODULE_big = $(EXTENSION)

EXT_LONGVER = $(shell grep '"version":' META.json | head -1 | sed -e 's/\s*"version":\s*"\(.*\)",/\1/')
EXT_SHORTVER = $(shell grep 'default_version' $(EXTENSION).control | head -1 | sed -e "s/default_version\s*=\s'\(.*\)'/\1/")
EXT_LONGVER = $(shell grep '"version":' META.json | head -1 \
| sed -e 's/[[:space:]]*"version":[[:space:]]*"\(.*\)",/\1/')
EXT_SHORTVER = $(shell grep 'default_version' $(EXTENSION).control | head -1 \
| sed -e "s/default_version[[:space:]]*=[[:space:]]'\(.*\)'/\1/")

SRC_C = $(sort $(wildcard src/*.c))
SRC_H = $(sort $(wildcard src/*.h))
Expand Down

0 comments on commit b0045e9

Please sign in to comment.