Permalink
Browse files

prepare v8

  • Loading branch information...
1 parent 8b8ccd5 commit 47597eb685231f8c960a1e5a14a68a7c9f186d8b @falconindy committed Oct 10, 2016
Showing with 6 additions and 11 deletions.
  1. +6 −11 Makefile
View
@@ -1,5 +1,5 @@
# expac - an alpm data dump tool
-VERSION = $(shell git describe --always)
+VERSION = 8
# paths
PREFIX ?= /usr/local
@@ -10,30 +10,25 @@ CPPFLAGS := -DVERSION=\"$(VERSION)\" -D_GNU_SOURCE $(CPPFLAGS)
CFLAGS := -std=c11 -g -pedantic -Wall -Wextra -Wno-missing-field-initializers $(CFLAGS)
LDLIBS = -lalpm
-DISTFILES = expac.c expac.h conf.c conf.h util.h README.pod
-
all: expac doc
expac: \
expac.c \
conf.c conf.h \
util.h
-doc: expac.1
+doc: \
+ expac.1
+
expac.1: README.pod
pod2man --section=1 --center="expac manual" --name="EXPAC" --release="expac $(VERSION)" $< $@
install: expac
install -Dm755 expac $(DESTDIR)$(PREFIX)/bin/expac
install -Dm644 expac.1 $(DESTDIR)$(MANPREFIX)/man1/expac.1
-expac-$(VERSION).tar.gz: dist
-dist: clean
- mkdir expac-$(VERSION)
- cp $(DISTFILES) expac-$(VERSION)
- sed "s/^VERSION = .*/VERSION = $(VERSION)/" Makefile > expac-$(VERSION)/Makefile
- tar cf - expac-$(VERSION) | gzip -9 > expac-$(VERSION).tar.gz
- rm -rf expac-$(VERSION)
+dist:
+ git archive --format=tar --prefix=expac-$(VERSION)/ HEAD | gzip -9 > expac-$(VERSION).tar.gz
upload: expac-$(VERSION).tar.gz
gpg --detach-sign expac-$(VERSION).tar.gz

0 comments on commit 47597eb

Please sign in to comment.