aboutsummaryrefslogtreecommitdiff
blob: 22dec4adcb454a054aa50b60955beb68d7ee5a15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
D := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
V := $(shell grep V $(D)/postgresql.eselect | grep -Po '[0-9.]+')

all:
	mkdir -p $(D)/eselect-postgresql-$(V)
	cp $(D)/postgresql.eselect $(D)/eselect-postgresql-$(V)/
	tar cjf $(D)/eselect-postgresql-$(V).tbz2 $(D)/eselect-postgresql-$(V)

clean:
	rm $(D)/eselect-postgresql-$(V)/postgresql.eselect
	rmdir $(D)/eselect-postgresql-$(V)
	rm $(D)/eselect-postgresql-$(V).tbz2