-core.c: core-$(MAJORVERSION).c
- cp core-$(MAJORVERSION).c core.c
-expected/init.out: expected/init-$(MAJORVERSION).out
- cp expected/init-$(MAJORVERSION).out expected/init.out
-expected/pg_hint_plan.out: expected/pg_hint_plan-$(MAJORVERSION).out
- cp expected/pg_hint_plan-$(MAJORVERSION).out expected/pg_hint_plan.out
-expected/ut-A.out: expected/ut-A-$(MAJORVERSION).out
- cp expected/ut-A-$(MAJORVERSION).out expected/ut-A.out
-expected/ut-A2.out: expected/ut-A2-$(MAJORVERSION).out
- cp expected/ut-A2-$(MAJORVERSION).out expected/ut-A2.out
-expected/ut-G.out: expected/ut-G-$(MAJORVERSION).out
- cp expected/ut-G-$(MAJORVERSION).out expected/ut-G.out
-expected/ut-J.out: expected/ut-J-$(MAJORVERSION).out
- cp expected/ut-J-$(MAJORVERSION).out expected/ut-J.out
-expected/ut-L.out: expected/ut-L-$(MAJORVERSION).out
- cp expected/ut-L-$(MAJORVERSION).out expected/ut-L.out
-expected/ut-S.out: expected/ut-S-$(MAJORVERSION).out
- cp expected/ut-S-$(MAJORVERSION).out expected/ut-S.out
-expected/base_plan.out: expected/base_plan-$(MAJORVERSION).out
- cp expected/base_plan-$(MAJORVERSION).out expected/base_plan.out
-expected/prepare.out: expected/prepare-$(MAJORVERSION).out
- cp expected/prepare-$(MAJORVERSION).out expected/prepare.out
-
-installcheck: expected/init.out expected/base_plan.out expected/pg_hint_plan.out expected/prepare.out expected/ut-A.out expected/ut-A2.out expected/ut-S.out expected/ut-J.out expected/ut-L.out expected/ut-G.out
+STARBALL12 = pg_hint_plan12-$(HINTPLANVER).tar.gz
+STARBALLS = $(STARBALL12)
+
+TARSOURCES = Makefile *.c *.h COPYRIGHT* \
+ pg_hint_plan--*.sql \
+ pg_hint_plan.control \
+ doc/* expected/*.out sql/*.sql sql/maskout.sh \
+ data/data.csv input/*.source output/*.source SPECS/*.spec
+
+ifneq ($(shell uname), SunOS)
+LDFLAGS+=-Wl,--build-id
+endif
+
+installcheck: $(REGRESSION_EXPECTED)
+
+rpms: rpm12