summaryrefslogtreecommitdiffstats
path: root/mga-bg-res/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mga-bg-res/Makefile')
-rw-r--r--mga-bg-res/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/mga-bg-res/Makefile b/mga-bg-res/Makefile
new file mode 100644
index 0000000..d533791
--- /dev/null
+++ b/mga-bg-res/Makefile
@@ -0,0 +1,27 @@
+VERSION:=$(shell cat VERSION)
+
+mga-bg-res:
+ gcc -O2 -g -Wall -o mga-bg-res mga-bg-res.c
+
+install:
+ mkdir -p $(DESTDIR)/usr/bin/
+ cp mga-bg-res $(DESTDIR)/usr/bin/
+ chmod u+s $(DESTDIR)/usr/bin/mga-bg-res
+ mkdir -p $(DESTDIR)/etc/X11/xinit.d/
+ cp mga-bg-res.xinit $(DESTDIR)/etc/X11/xinit.d/01mga-bg-res
+
+uninstall:
+ rm -f $(DESTDIR)/usr/bin/mga-bg-res
+ rm -f $(DESTDIR)/etc/X11/xinit.d/01mga-bg-res
+
+dist:
+ mkdir mga-bg-res-$(VERSION)
+ cp mga-bg-res.c mga-bg-res-$(VERSION)/
+ cp mga-bg-res.xinit mga-bg-res-$(VERSION)/
+ cp Makefile mga-bg-res-$(VERSION)/
+ cp VERSION mga-bg-res-$(VERSION)/
+ tar caf mga-bg-res-$(VERSION).tar.xz mga-bg-res-$(VERSION)
+ rm -rf mga-bg-res-$(VERSION)
+
+clean:
+ rm -f mga-bg-res