[Pkg-wmaker-commits] [wmbubble] 139/207: Fix makefile

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 04:18:21 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbubble.

commit 9e9c3d00b31b709bff86ee3bfefc876ba3afa5e5
Author: Robert Jacobs <rnjacobs at mit.edu>
Date:   Thu Feb 9 16:18:26 2012 -0800

    Fix makefile
---
 Makefile | 24 ++++++++++++++++++++++--
 1 file changed, 22 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 8148514..bb1b4a4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,12 @@
+ifneq (,)
+This makefile requires GNU Make.
+endif
+
+INSTALL = -m 755
+VERSION = $(shell git describe --tags)
+
 # where to install this program
+DESTDIR =
 PREFIX = /usr/local
 
 # default build flags
@@ -75,5 +83,17 @@ sys_%.o: sys_%.c include/bubblemon.h include/sys_include.h
 clean:
 	rm -f wmbubble *.o *.bb* *.gcov gmon.* *.da *~
 
-install:
-	install $(INSTALL) wmbubble $(PREFIX)/bin
+install: wmbubble wmbubble.1
+	install -m 755 -d $(DESTDIR)$(PREFIX)/bin
+	install $(INSTALL) wmbubble $(DESTDIR)$(PREFIX)/bin
+	install -m 755 -d $(DESTDIR)$(PREFIX)/share/man/man1
+	install -m 644 wmbubble.1 $(DESTDIR)$(PREFIX)/share/man/man1
+
+dist-tar:
+	git archive -v -9 --prefix=wmbubble-$(VERSION)/ master \
+		-o ../wmbubble-$(VERSION).tar.gz
+
+dist: dist-tar
+
+dist-debian: ../wmbubble-$(VERSION).tar.gz
+	cp $< ../wmbubble_$(VERSION).orig.tar.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbubble.git



More information about the Pkg-wmaker-commits mailing list