File: Makefile

package info (click to toggle)
podget 0.8.10-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 416 kB
  • sloc: sh: 2,877; python: 34; makefile: 24
file content (30 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (3)
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
UNAME:= $(shell uname -s)

ifeq ($(UNAME), Darwin)
	prefix ?= /usr/local
else
	prefix ?= /usr
endif

all: podget podget.7.gz changelog.gz

podget.7.gz: DOC/podget.7
	gzip -9 < $< > DOC/$@

changelog.gz: Changelog
	gzip -9 < $< > $@

install: all
	mkdir -p $(DESTDIR)$(prefix)/bin/
	install -m 755 podget $(DESTDIR)$(prefix)/bin/podget

	mkdir -p $(DESTDIR)$(prefix)/share/man/man7/
	install -m 644 DOC/podget.7.gz $(DESTDIR)$(prefix)/share/man/man7/podget.7.gz

	mkdir -p $(DESTDIR)$(prefix)/share/doc/podget
	install -m 444 changelog.gz $(DESTDIR)$(prefix)/share/doc/podget/changelog.gz

distclean: clean
clean:
	rm -f DOC/podget.7.gz
	rm -f changelog.gz