-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.meta
24 lines (20 loc) · 1006 Bytes
/
Makefile.meta
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.PHONY: release
VERSION = $(shell ./scripts/dump-version)
release: scripts/dump-version
perl scripts/docs.pl
mkdir -p dist
rm -rf dist/icecast-hls-$(VERSION) dist/icecast-hls-$(VERSION).tar dist/icecast-hls-$(VERSION).tar.gz dist/icecast-hls-$(VERSION).tar.xz
mkdir -p dist/icecast-hls-$(VERSION)/doc/wiki
rsync -av --exclude='*.o' src/ dist/icecast-hls-$(VERSION)/src/
rsync -av Makefile dist/icecast-hls-$(VERSION)/Makefile
rsync -av LICENSE dist/icecast-hls-$(VERSION)/LICENSE
rsync -av README.md dist/icecast-hls-$(VERSION)/README.md
rsync -av docs/ dist/icecast-hls-$(VERSION)/doc/
rsync -av --exclude='.git' wiki/ dist/icecast-hls-$(VERSION)/doc/wiki/
tar cf dist/icecast-hls-$(VERSION).tar -C dist --owner=root:0 --group=root:0 icecast-hls-$(VERSION)
cd dist && gzip -k icecast-hls-$(VERSION).tar
cd dist && xz -k icecast-hls-$(VERSION).tar
scripts/dump-version: scripts/dump-version.o
$(CC) -o $@ $^
scripts/dump-version.o: scripts/dump-version.c src/version.h
$(CC) -o $@ -c $<