diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-11-23 19:01:39 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-11-23 19:01:39 -0500 |
commit | 6461d0524ef2d4c326467c2c8853a9cee1454160 (patch) | |
tree | 4f42f0fff6eaa308086f66f072f482b0527e1699 | |
parent | 5fce03189d6157572ae8b386f949b0e37881826a (diff) | |
download | expac-6461d0524ef2d4c326467c2c8853a9cee1454160.tar.xz |
cleanup makefile, add an upload target
-rw-r--r-- | Makefile | 17 |
1 files changed, 10 insertions, 7 deletions
@@ -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 |