Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (36 sloc) 1.29 KB
#
# Makefile for lunar-tools - a collection of lunar-related shell tools
#
# versioning scheme: since this is mostly a linear process if incremental
# but we do not update that often we use year.number as version number
# i.e. 2004.9 2004.10 2004.11 ...
VERSION = 2013.2
bin_PROGS = prog/run-parts
sbin_PROGS = prog/lids prog/luser prog/lnet prog/lservices \
prog/lmodules prog/clad prog/ltime
DOCS = README COPYING
MANPAGES = $(shell ls -1 man/*)
all:
.PHONY:
install: .PHONY
install -d $(DESTDIR)/sbin
install -m755 prog/installkernel $(DESTDIR)/sbin/
install -d $(DESTDIR)/usr/bin
for PROGRAM in ${bin_PROGS} ; do \
install -m755 $${PROGRAM} $(DESTDIR)/usr/bin/ ; \
done
install -d $(DESTDIR)/usr/sbin
for PROGRAM in ${sbin_PROGS} ; do \
install -m755 $${PROGRAM} $(DESTDIR)/usr/sbin/ ; \
done
for MANPAGE in ${MANPAGES} ; do \
EXT=`echo "$${MANPAGE:(($${#MANPAGE}-1)):1}"` ; \
install -d $(DESTDIR)/usr/share/man/man$$EXT ; \
install -m644 $${MANPAGE} $(DESTDIR)/usr/share/man/man$$EXT/ ; \
done
install -d $(DESTDIR)/usr/share/doc/lunar-tools
for DOC in ${DOCS} ; do \
install -m644 $${DOC} $(DESTDIR)/usr/share/doc/lunar-tools/ ; \
done
dist:
git archive --format=tar --prefix=lunar-tools-$(VERSION)/ lunar-tools-$(VERSION) | bzip2 > lunar-tools-$(VERSION).tar.bz2
Something went wrong with that request. Please try again.