Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 90 lines (80 sloc) 2.808 kb
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
1
1725900 @sofar Push v3 for testing.
sofar authored
2 VERSION = 3
bf2038d @sofar versioning: incremental natural numbers.
sofar authored
3
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
4 bin_PROGS = prog/lvu prog/lvis prog/lsh
5 sbin_PROGS = prog/lin prog/lrm prog/lunar prog/lget
6
7 plug_LIBS = $(shell ls -1 plugins/*)
8 core_LIBS = $(shell ls -1 libs/*)
9 menu_LIBS = $(shell ls -1 menu/*)
10
11 etc = etc/config etc/dialogrc
12 mirrors = $(shell ls -1 mirrors/*)
13 blacklist = $(shell ls -1 blacklist/*)
14 compilers = $(shell ls -1 compilers/*)
15 mans = $(shell ls -1 man/*)
16
17 all:
18
19 .PHONY:
20 install: .PHONY
21 install -d $(DESTDIR)/etc/lunar
22 for F in $(etc) ; do \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
23 install -m0644 $$F $(DESTDIR)/etc/lunar/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
24 done
25 install -d $(DESTDIR)/etc/lunar/local/depends
26 install -d $(DESTDIR)/var/lib/lunar/menu
27 for F in $(menu_LIBS) ; do \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
28 install -m0644 $$F $(DESTDIR)/var/lib/lunar/menu/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
29 done
30 install -d $(DESTDIR)/var/lib/lunar/functions
31 for F in $(core_LIBS) ; do \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
32 install -m0644 $$F $(DESTDIR)/var/lib/lunar/functions/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
33 done
34 install -d $(DESTDIR)/var/lib/lunar/plugins
35 for F in $(plug_LIBS) ; do \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
36 install -m0644 $$F $(DESTDIR)/var/lib/lunar/plugins/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
37 done
38 install -d $(DESTDIR)/bin
39 for F in $(bin_PROGS) ; do \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
40 install -m0755 $$F $(DESTDIR)/bin/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
41 done
42 install -d $(DESTDIR)/sbin
43 for F in $(sbin_PROGS) ; do \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
44 install -m0755 $$F $(DESTDIR)/sbin/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
45 done
46 install -d $(DESTDIR)/etc/lunar/mirrors
47 for F in $(mirrors) ; do \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
48 install -m0644 $$F $(DESTDIR)/etc/lunar/mirrors/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
49 done
50 install -d $(DESTDIR)/var/state/lunar
51 for F in $(blacklist) ; do \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
52 install -m0644 $$F $(DESTDIR)/var/state/lunar/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
53 done
54 install -d $(DESTDIR)/var/lib/lunar/compilers ; \
55 for F in $(compilers) ; do \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
56 install -m0755 $$F $(DESTDIR)/var/lib/lunar/compilers/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
57 done
58 install -d $(DESTDIR)/var/lib/lunar
bac454b @cavalier38 Split code from /etc/lunar/config to /var/lib/lunar/bootstrap
cavalier38 authored
59 install -m0755 misc/bootstrap $(DESTDIR)/var/lib/lunar/
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
60 install -m0644 misc/excluded $(DESTDIR)/var/lib/lunar/
61 install -m0644 misc/protected $(DESTDIR)/var/lib/lunar/
62 install -m0644 misc/solo $(DESTDIR)/var/lib/lunar/
63 install -m0644 misc/sustained $(DESTDIR)/var/lib/lunar/
64 install -m0755 misc/unset.sh $(DESTDIR)/var/lib/lunar/
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
65 install -d $(DESTDIR)/lib/lsb
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
66 install -m0644 misc/init-functions $(DESTDIR)/lib/lsb/
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
67 install -d $(DESTDIR)/var/log/lunar/compile
68 install -d $(DESTDIR)/var/log/lunar/install
69 install -d $(DESTDIR)/var/log/lunar/md5sum
70 install -d $(DESTDIR)/var/log/lunar/queue
82baa47 @sofar theedge: create /var/{spool,cache}/lunar as well
sofar authored
71 install -d $(DESTDIR)/var/cache/lunar
72 install -d $(DESTDIR)/var/spool/lunar
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
73 for F in $(mans) ; do \
74 EXT=`echo $$F | sed 's/.*[.]//'` ; \
75 install -d $(DESTDIR)/usr/share/man/man$$EXT ; \
121b947 @sofar theedge: set perms explicitly on install.
sofar authored
76 install -m0644 $$F $(DESTDIR)/usr/share/man/man$$EXT/ ; \
a44d7aa @sofar theedge: create a normal `make install` package out of this.
sofar authored
77 done
78 # easy way out for the docs:
79 install -d $(DESTDIR)/usr/share/doc/lunar
80 cp -av doc $(DESTDIR)/usr/share/doc/lunar/
bf2038d @sofar versioning: incremental natural numbers.
sofar authored
81
82 tag:
83 git tag v$(VERSION)
84
85 dist:
86 git archive --format=tar --prefix="lunar-$(VERSION)/" v$(VERSION) | bzip2 > lunar-$(VERSION).tar.bz2
619abed @sofar Add helper target to get the latest tarball.
sofar authored
87
88 tell:
89 @echo "lunar-$(VERSION).tar.bz2"
Something went wrong with that request. Please try again.