summaryrefslogtreecommitdiff
path: root/wm/someblocks/Makefile
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2023-03-31 19:42:29 -0500
committerstkhan <personal@slickd.xyz>2023-03-31 19:42:29 -0500
commit0e71af11a27631e45c0160842e4498507420eff0 (patch)
tree4eed4eba5b0273f26bc55243cce36a2670ac0fef /wm/someblocks/Makefile
parent07afc07ffff324f3a355f2437bd643b616fe0af4 (diff)
bar and blocks
Diffstat (limited to 'wm/someblocks/Makefile')
-rw-r--r--wm/someblocks/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/wm/someblocks/Makefile b/wm/someblocks/Makefile
new file mode 100644
index 0000000..f0c027b
--- /dev/null
+++ b/wm/someblocks/Makefile
@@ -0,0 +1,20 @@
+PREFIX ?= /usr/local
+MANPREFIX ?= $(PREFIX)/share/man
+CC ?= cc
+
+output: someblocks.c blocks.def.h blocks.h
+ ${CC} someblocks.c $(LDFLAGS) -o someblocks
+blocks.h:
+ cp blocks.def.h $@
+
+
+clean:
+ rm -f *.o *.gch someblocks
+install: output
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ install -m 0755 someblocks $(DESTDIR)$(PREFIX)/bin/someblocks
+ mkdir -p $(DESTDIR)$(MANPREFIX)/man1
+ install -m 0644 someblocks.1 $(DESTDIR)$(MANPREFIX)/man1/someblocks.1
+uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/bin/someblocks
+ rm -f $(DESTDIR)$(MANPREFIX)/man1/someblocks.1