Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (23 sloc) 0.938 kb
VERSION := 0.5.1
DIST := apt-mirror CHANGELOG LICENSE Makefile mirror.list postmirror.sh README.md .perltidyrc
BASE_PATH := /var/spool/apt-mirror
PREFIX ?= /usr/local
all:
dist: apt-mirror-$(VERSION).tar.xz
install:
install -m 755 -D apt-mirror $(DESTDIR)$(PREFIX)/bin/apt-mirror
mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1/
pod2man apt-mirror > $(DESTDIR)$(PREFIX)/share/man/man1/apt-mirror.1
if test ! -f $(DESTDIR)/etc/apt/mirror.list; then install -m 644 -D mirror.list $(DESTDIR)/etc/apt/mirror.list; fi
mkdir -p $(DESTDIR)$(BASE_PATH)/mirror
mkdir -p $(DESTDIR)$(BASE_PATH)/skel
mkdir -p $(DESTDIR)$(BASE_PATH)/var
%.tar.bz2: $(DIST)
tar -c --exclude-vcs --transform="s@^@$*/@" $^ | bzip2 -cz9 > $@
%.tar.gz: $(DIST)
tar -c --exclude-vcs --transform="s@^@$*/@" $^ | gzip -cn9 > $@
%.tar.xz: $(DIST)
tar -c --exclude-vcs --transform="s@^@$*/@" $^ | xz -cz9 > $@
clean:
rm -f *.tar.*
.PHONY: all clean dist install
Jump to Line
Something went wrong with that request. Please try again.