source: trunk/cereal/Makefile @ 447

Last change on this file since 447 was 447, checked in by jrollins, 6 years ago

cereal: tweaks to default screenrc, and update to Makefile

File size: 1.2 KB
Line 
1#!/usr/bin/make -f
2
3# Makefile for cereal
4
5# (c) 2007 Daniel Kahn Gillmor <dkg-debian.org@fifthhorseman.net>
6# Licensed under GPL v2 or later
7
8# this makefile is mostly a dummy, but it provides a convenient
9# "install" target for folks who want to install cereal from a
10# standard "source tarball"
11
12PREFIX=/usr
13CONFIGDIR=/etc
14
15all:
16        echo "cereal is composed of scripts, so no compilation is necessary"
17
18install:
19        install -d $(PREFIX)/{bin,sbin,share/man/man{1,8},share/cereal} $(CONFIGDIR)/cereal
20        install fs/usr/bin/cereal $(PREFIX)/bin/cereal
21        install fs/usr/sbin/cereal-admin $(PREFIX)/sbin/cereal-admin
22        install -m 0644 fs/usr/share/man/man1/cereal.1 $(PREFIX)/share/man/man1/cereal.1
23        install -m 0644 fs/usr/share/man/man8/cereal-admin.8 $(PREFIX)/share/man/man8/cereal-admin.8
24        install fs/usr/share/cereal/{log,main}run $(PREFIX)/share/cereal/
25        install -m 0644 fs/usr/share/cereal/{common,screenrc} $(PREFIX)/share/cereal/
26
27# invoke this target like `make VERSION=0.1 release' to build an
28# "upstream tarball".
29release:
30        mkdir -p build/upstream
31        ln -s ../.. build/upstream/cereal-$(VERSION)
32        (cd build/upstream && tar czf ../cereal_$(VERSION).tar.gz --exclude=.svn --exclude=*~ cereal-$(VERSION)/{fs,COPYING,Makefile,docs})
33        rm -f build/upstream/cereal-$(VERSION)
34
35clean:
Note: See TracBrowser for help on using the repository browser.