summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-03-21 23:41:23 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-03-21 23:41:23 +0100
commit381a0917c48ce419ececd3ed560bf42fb8422d07 (patch)
tree3cf76569d4366883cff3656a8deb2438d1c27305 /Makefile
downloadpx-381a0917c48ce419ececd3ed560bf42fb8422d07.tar.gz
px-381a0917c48ce419ececd3ed560bf42fb8422d07.tar.xz
px-381a0917c48ce419ececd3ed560bf42fb8422d07.zip
initial commit of px
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile24
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..59bd863
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+ALL=px
+
+CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings
+LDFLAGS=-lprocps
+
+DESTDIR=
+PREFIX=/usr/local
+BINDIR=$(PREFIX)/bin
+MANDIR=$(PREFIX)/share/man
+
+all: $(ALL)
+
+clean: FRC
+	rm -f $(ALL)
+
+install: FRC all
+	mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
+	install -m0755 $(ALL) $(DESTDIR)$(BINDIR)
+	install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1
+
+README: px.1
+	mandoc -Tutf8 $< | col -bx >$@
+
+FRC: