diff options
| author | Gibheer <gibheer+git@zero-knowledge.org> | 2024-10-30 19:27:15 +0100 | 
|---|---|---|
| committer | Gibheer <gibheer+git@zero-knowledge.org> | 2024-10-30 19:27:15 +0100 | 
| commit | ef425e0e4b8933e831914eafd7a49f1c6619366d (patch) | |
| tree | 9e9ff5ad38c63fefdf36b0bcf03d6f8f0db46403 /Makefile | |
| parent | 05d6841d7b33f6ffe02b0d77afaa7c44687cea9e (diff) | |
add everything for a proper build processv0.2
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 | 
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9a981d7 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +VERSION ?= 0.2 +SOURCE_DATE_EPOCH ?= $(shell date +%s) + +all: gocgi-${VERSION}.tar.gz clean + +gocgi-${VERSION}.tar.gz: gocgi-${VERSION} +	tar --sort=name \ +	 	--numeric-owner \ +	 	--owner=0 \ +		--group=0 \ +		--gzip \ +		--pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime,delete=ctime \ +		-cf gocgi-${VERSION}.tar.gz \ +		gocgi-${VERSION} + +gocgi-${VERSION}: +	mkdir gocgi-${VERSION} +	cp main.go gocgi-${VERSION}/ +	cp README.md gocgi-${VERSION}/ +	cp go.mod gocgi-${VERSION}/ +	cp Makefile gocgi-${VERSION}/ +	find gocgi-${VERSION} -print0 | \ +		xargs -0r touch --no-dereference --date="@${SOURCE_DATE_EPOCH}" + +clean: +	rm -R gocgi-${VERSION}  | 
