summaryrefslogtreecommitdiff
path: root/scroll-0.1/Makefile
diff options
context:
space:
mode:
authorstkhan <personal@slickd.xyz>2022-05-13 18:15:43 +0000
committerstkhan <personal@slickd.xyz>2022-05-13 18:15:43 +0000
commit2e81fbdf15168a5b6df291b7062d120156a5ce45 (patch)
tree57de36552c6f46e43d8520ccf65acb80ef5f6c29 /scroll-0.1/Makefile
parent7a93f153bf5e088ab6e2da6fcc0518744cfd54af (diff)
Removed dwm scripts, sfm, , added scroll, and added dark theme to surf
Diffstat (limited to 'scroll-0.1/Makefile')
-rw-r--r--scroll-0.1/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/scroll-0.1/Makefile b/scroll-0.1/Makefile
new file mode 100644
index 0000000..cacccd2
--- /dev/null
+++ b/scroll-0.1/Makefile
@@ -0,0 +1,45 @@
+.POSIX:
+
+include config.mk
+
+all: scroll
+
+config.h:
+ cp config.def.h config.h
+
+scroll: scroll.c config.h
+
+install: scroll
+ mkdir -p $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)/man1
+ cp -f scroll $(DESTDIR)$(BINDIR)
+ cp -f scroll.1 $(DESTDIR)$(MANDIR)/man1
+
+uninstall:
+ rm -f $(DESTDIR)$(BINDIR)/scroll $(DESTDIR)$(MANDIR)/man1/scroll.1
+
+test: scroll ptty
+ # check usage
+ if ./ptty ./scroll -h; then exit 1; fi
+ # check exit passthrough of child
+ if ! ./ptty ./scroll true; then exit 1; fi
+ if ./ptty ./scroll false; then exit 1; fi
+ ./up.sh
+
+clean:
+ rm -f scroll ptty
+
+distclean: clean
+ rm -f config.h scroll-$(VERSION).tar.gz
+
+dist: clean
+ mkdir -p scroll-$(VERSION)
+ cp -R README scroll.1 TODO Makefile config.mk config.def.h \
+ ptty.c scroll.c up.sh up.log \
+ scroll-$(VERSION)
+ tar -cf - scroll-$(VERSION) | gzip > scroll-$(VERSION).tar.gz
+ rm -rf scroll-$(VERSION)
+
+.c:
+ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o $@ $< -lutil
+
+.PHONY: all install test clean distclean dist