diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2012-04-20 14:36:21 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2012-04-20 14:36:21 +0200 |
commit | 5ee33795c55ea7a6a476b7302de07c53b4420137 (patch) | |
tree | 15aaab2fce6056cb4fddfc57e40fd28621ff2878 /Makefile | |
parent | 481b1a4955d5be53aa778032280b90e256cf3b7c (diff) | |
download | pgfuse-5ee33795c55ea7a6a476b7302de07c53b4420137.tar.gz pgfuse-5ee33795c55ea7a6a476b7302de07c53b4420137.tar.bz2 |
added make dist
added a Centos specfile
added scripts and templates to build on OSC
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -1,5 +1,8 @@ all: pgfuse +PACKAGE_NAME = pgfuse +PACKAGE_VERSION = 0.0.1 + # for debugging CFLAGS = -Wall -Werror -g -O0 -pthread # for releasing @@ -105,3 +108,19 @@ testpgsql: testpgsql.o testpgsql.o: testpgsql.c $(CC) -c $(CFLAGS) -o testpgsql.o testpgsql.c +dist: + rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) + mkdir /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) + cp -r * /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/. + cd /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION); \ + $(MAKE) clean; \ + cd .. ; \ + tar cvf $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar \ + $(PACKAGE_NAME)-$(PACKAGE_VERSION) + rm -rf /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION) + mv /tmp/$(PACKAGE_NAME)-$(PACKAGE_VERSION).tar . + +dist-gz: dist + rm -f $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar.gz + gzip $(PACKAGE_NAME)-$(PACKAGE_VERSION).tar +
\ No newline at end of file |