aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-07-22 14:49:33 -0400
committerB. Stack <bgstack15@gmail.com>2021-07-22 14:49:33 -0400
commit9ba528a16caf57faf3a7d01cd6d39420c8f86bf8 (patch)
tree341279dc6aa7352c8c9ba98ae3c08c1d351c123b /Makefile
downloaddrop-videos-master.tar.gz
drop-videos-master.tar.bz2
drop-videos-master.zip
initial commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..96276ef
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+# Copied directly from dragon https://github.com/mwh/dragon on 2021-07-22
+PREFIX = $(HOME)/.local
+MANPREFIX = $(PREFIX)/share/man
+NAME = dragon
+
+all: $(NAME)
+
+$(NAME): dragon.c
+ $(CC) --std=c99 -Wall $(DEFINES) dragon.c -o $(NAME) `pkg-config --cflags gtk+-3.0` `pkg-config --libs gtk+-3.0`
+
+install: $(NAME)
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ cp -f $(NAME) $(DESTDIR)$(PREFIX)/bin
+ chmod 755 $(DESTDIR)$(PREFIX)/bin/$(NAME)
+ mkdir -p $(DESTDIR)$(MANPREFIX)/man1
+ sed -e "s/dragon/$(NAME)/g" dragon.1 > $(DESTDIR)$(MANPREFIX)/man1/$(NAME).1
+ chmod 644 $(DESTDIR)$(MANPREFIX)/man1/$(NAME).1
+
+uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/bin/$(NAME) $(DESTDIR)$(MANPREFIX)/man1/$(NAME).1
bgstack15