Commit Diff


commit - d9354c43d192eb1d1d0759c0616e1438b6622f66
commit + 2e277704c4c4ad721e19d3984fc1e272b2da63bf
blob - /dev/null
blob + 30b2e390c3c5dfe6c5855003b096600d43c06e91 (mode 644)
--- /dev/null
+++ Makefile
@@ -0,0 +1,38 @@
+include version.mk
+
+BIN = gpm
+MAN = $(BIN:=.1)
+DIST = $(BIN)$(V)
+TARBALL = $(DIST).tar.gz
+
+PREFIX ?= $(DESTDIR)/usr/local
+MANPREFIX ?= $(PREFIX)/man
+
+INSTALL ?= install
+
+bindir = $(PREFIX)/bin
+mandir = $(MANPREFIX)/man1
+
+all:
+	@echo type \`make install\' to install gpm
+
+install:
+	mkdir -p $(bindir)
+	$(INSTALL) -m 755 $(BIN) $(bindir)
+	mkdir -p $(mandir)
+	$(INSTALL) -m 644 $(MAN) $(mandir)
+
+uninstall:
+	cd $(bindir) && rm -f $(BIN)
+	cd $(mandir) && rm -f $(MAN)
+
+clean:
+	-rm -rf $(TARBALL) $(DIST)
+
+dist: clean
+	mkdir -p $(DIST)
+	cp -rf Makefile version.mk README COPYING pm2gpm $(MAN) $(BIN) $(DIST)
+	tar cf - $(DIST) | gzip >$(TARBALL)
+	rm -rf $(DIST)
+
+.PHONY: all install uninstall clean dist
blob - /dev/null
blob + f623384ddf344ff6e3d37f96317242f142b00d31 (mode 644)
--- /dev/null
+++ version.mk
@@ -0,0 +1 @@
+V = 0.1