summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile17
1 files 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