source: trunk/debirf/Makefile @ 1301

Last change on this file since 1301 was 1301, checked in by Daniel Kahn Gillmor, 9 years ago

complete removal of default-package-list, since we are no longer maintaining it

  • Property svn:executable set to *
File size: 2.0 KB
Line 
1#!/usr/bin/make -f
2
3# Makefile for debirf
4
5# (c) 2008 Jameson Graef Rollins <jrollins@finestructure.net>
6# Licensed under GPL v3 or later
7
8VERSION := `head -n1 debian/changelog | sed 's/.*(\([^-]*\)-.*/\1/'`
9
10PREFIX ?= /usr
11MANPREFIX ?= $(PREFIX)/share/man
12
13PROF_DIR = doc/example-profiles
14
15build:
16        true
17
18tarball: clean
19        rm -rf debirf-$(VERSION)
20        mkdir -p debirf-$(VERSION)/doc/example-profiles
21        ln -s ../../doc/README debirf-$(VERSION)/doc
22        (cd $(PROF_DIR) && tar c --exclude='*~' --exclude='*.svn*' minimal/) | gzip -n > debirf-$(VERSION)/doc/example-profiles/minimal.tgz
23        (cd $(PROF_DIR) && tar c --exclude='*~' --exclude='*.svn*' rescue/) | gzip -n > debirf-$(VERSION)/doc/example-profiles/rescue.tgz
24        (cd $(PROF_DIR) && tar c --exclude='*~' --exclude='*.svn*' xkiosk/) | gzip -n > debirf-$(VERSION)/doc/example-profiles/xkiosk.tgz
25        ln -s ../COPYING ../Makefile ../man ../src debirf-$(VERSION)
26        tar ch --exclude='*~' --exclude='*.svn*' debirf-$(VERSION) | gzip -n > debirf_$(VERSION).orig.tar.gz
27        rm -rf debirf-$(VERSION)
28
29debian-package: tarball
30        tar xzf debirf_$(VERSION).orig.tar.gz
31        tar c --exclude='*~' --exclude='*.svn*' debian | tar x -C debirf-$(VERSION)
32        (cd debirf-$(VERSION) && debuild -us -uc)
33        rm -rf debirf-$(VERSION)
34
35install: installman
36        mkdir -p $(DESTDIR)$(PREFIX)/bin
37        mkdir -p $(DESTDIR)$(PREFIX)/share/doc/debirf/example-profiles
38        mkdir -p $(DESTDIR)$(PREFIX)/share/debirf/modules
39        install src/debirf $(DESTDIR)$(PREFIX)/bin
40        install src/common $(DESTDIR)$(PREFIX)/share/debirf
41        install --mode=644 src/devices.tar.gz $(DESTDIR)$(PREFIX)/share/debirf
42        install src/modules/* $(DESTDIR)$(PREFIX)/share/debirf/modules
43        install --mode=644 src/grub2-terminal-chooser $(DESTDIR)$(PREFIX)/share/debirf
44        install doc/README $(DESTDIR)$(PREFIX)/share/doc/debirf
45        install doc/example-profiles/* $(DESTDIR)$(PREFIX)/share/doc/debirf/example-profiles
46
47installman:
48        mkdir -p $(DESTDIR)$(MANPREFIX)/man1
49        gzip -n man/*/*
50        install man/man1/* $(DESTDIR)$(MANPREFIX)/man1
51        gzip -d man/*/*
52
53clean:
54        rm -f debirf_*
55
56.PHONY: build tarball debian-package install installman clean
Note: See TracBrowser for help on using the repository browser.