From 6461d0524ef2d4c326467c2c8853a9cee1454160 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 23 Nov 2014 19:01:39 -0500 Subject: cleanup makefile, add an upload target --- Makefile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Makefile b/Makefile index c96e629..7e08ac9 100644 --- a/Makefile +++ b/Makefile @@ -12,23 +12,22 @@ LDLIBS = -lalpm DISTFILES = expac.c README.pod -expac_SOURCES = \ +all: expac doc + +expac: \ expac.c \ conf.c conf.h \ util.h -all: expac doc - -expac: $(expac_SOURCES) - doc: expac.1 expac.1: README.pod pod2man --section=1 --center="expac manual" --name="EXPAC" --release="expac $(VERSION)" $< $@ install: expac - install -D -m755 expac $(DESTDIR)$(PREFIX)/bin/expac - install -D -m644 expac.1 $(DESTDIR)$(MANPREFIX)/man1/expac.1 + 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) @@ -36,6 +35,10 @@ dist: clean tar cf - expac-$(VERSION) | gzip -9 > expac-$(VERSION).tar.gz rm -rf expac-$(VERSION) +upload: expac-$(VERSION).tar.gz + gpg --detach-sign expac-$(VERSION).tar.gz + scp expac-$(VERSION).tar.gz expac-$(VERSION).tar.gz.sig code.falconindy.com:archive/expac/ + clean: $(RM) *.o expac expac.1 -- cgit v1.2.3-70-g09d2