-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (29 loc) · 1.34 KB
/
Makefile
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
28
29
30
31
32
33
34
35
36
vercmp.o: vercmp.c
cc vercmp.c -o vercmp.o
install: $(DESTDIR)/usr/bin/vercmp fetchers scripts
fetchers: $(DESTDIR)/etc/lpkg.d/fetchers/01_http.sh $(DESTDIR)/etc/lpkg.d/fetchers/02_https.sh
$(DESTDIR)/etc/lpkg.d/fetchers/01_http.sh: fetchers/http.sh
install -m 0700 -D fetchers/http.sh $(DESTDIR)/etc/lpkg.d/fetchers/01_http.sh
$(DESTDIR)/etc/lpkg.d/fetchers/02_https.sh: fetchers/https.sh
install -m 0700 -D fetchers/https.sh $(DESTDIR)/etc/lpkg.d/fetchers/02_https.sh
scripts: $(DESTDIR)/usr/bin/lpkg $(DESTDIR)/usr/bin/lpkg-inst $(DESTDIR)/usr/bin/lpkg-alt $(DESTDIR)/usr/bin/lpkg-rm
$(DESTDIR)/usr/bin/lpkg: lpkg.sh
install -m 0700 -D lpkg.sh $(DESTDIR)/usr/bin/lpkg
$(DESTDIR)/usr/bin/lpkg-inst: inst.sh
install -m 0700 -D inst.sh $(DESTDIR)/usr/bin/lpkg-inst
$(DESTDIR)/usr/bin/lpkg-alt: alternative.sh
install -m 0700 -D alternative.sh $(DESTDIR)/usr/bin/lpkg-alt
$(DESTDIR)/usr/bin/lpkg-rm: rm.sh
install -m 0700 -D rm.sh $(DESTDIR)/usr/bin/lpkg-rm
$(DESTDIR)/usr/bin/vercmp: vercmp.o
install -m 0700 -D vercmp.o $(DESTDIR)/usr/bin/vercmp
ifeq ($(LOCALDIR),)
LOCALDIR = /usr/local/lpkg
endif
install-local-tools: $(LOCALDIR)/vercmp $(LOCALDIR)/lpkg-inst $(LOCALDIR)/lpkg-alt
$(LOCALDIR)/vercmp: vercmp.o
install -m 0755 -D $< $@
$(LOCALDIR)/lpkg-inst: inst.sh
install -m 0755 -D $< $@
$(LOCALDIR)/lpkg-alt: alternative.sh
install -m 0755 -D $< $@