mirror of
https://github.com/tomolt/libschrift
synced 2025-06-07 21:39:34 -04:00
'make dist' build target
This commit is contained in:
parent
1035289a45
commit
abbf37b8aa
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,8 +2,10 @@
|
||||
libschrift.a
|
||||
/demo
|
||||
/stress
|
||||
schrift-*.tar.gz
|
||||
|
||||
.vs/
|
||||
*.vcxproj.user
|
||||
Debug/
|
||||
Release/
|
||||
*.obj
|
||||
|
15
Makefile
15
Makefile
@ -4,7 +4,9 @@
|
||||
|
||||
include config.mk
|
||||
|
||||
.PHONY: all clean install uninstall
|
||||
VERSION=0.10.2
|
||||
|
||||
.PHONY: all clean install uninstall dist
|
||||
|
||||
all: libschrift.a demo stress
|
||||
|
||||
@ -49,3 +51,14 @@ uninstall:
|
||||
rm -f "$(DESTDIR)$(PREFIX)/include/schrift.h"
|
||||
rm -f "$(DESTDIR)$(MANPREFIX)/man3/schrift.3"
|
||||
|
||||
dist:
|
||||
rm -rf "schrift-$(VERSION)"
|
||||
mkdir -p "schrift-$(VERSION)"
|
||||
cp -R README.md LICENSE CHANGELOG.md TODO.md schrift.3 \
|
||||
Makefile config.mk \
|
||||
schrift.c schrift.h demo.c stress.c \
|
||||
resources/ util/ \
|
||||
"schrift-$(VERSION)"
|
||||
tar -cf - "schrift-$(VERSION)" | gzip -c > "schrift-$(VERSION).tar.gz"
|
||||
rm -rf "schrift-$(VERSION)"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user