blob: d5337913c34489d625c1be9a2a8152af8e877f07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
|