root/Makefile

Revision 7c3da85ea3081cd215b42b3ed64f951232d808ec, 1.1 KB (checked in by Frederic Lepied <frederic.lepied@…>, 21 months ago)

0.7.2

  • Property mode set to 100644
Line 
1#---------------------------------------------------------------
2# Project         : pxemngr
3# File            : Makefile
4# Copyright       : 2009 Splitted-Desktop Systems
5# Author          : Frederic Lepied
6# Created On      : Sun Feb  1 13:54:41 2009
7# Purpose         : build rules
8#---------------------------------------------------------------
9
10VERSION=0.7.2
11
12bindir=/usr/bin
13libdir=/usr/share/pxemngr
14etcdir=/etc
15
16all:
17        @echo "use 'make dist' to build a tar ball."
18        @echo "use 'make install' to install the files in the system."
19        @exit 1
20
21install:
22        mkdir -p $(DESTDIR)$(bindir) $(DESTDIR)$(libdir)/pxe $(DESTDIR)$(libdir)/tester $(DESTDIR)$(etcdir)
23        install pxe/pxemngr $(DESTDIR)$(bindir)/pxemngr
24        install -m 644 pxe/pxemngr.conf $(DESTDIR)$(etcdir)/pxemngr.conf
25        install *.py $(DESTDIR)$(libdir)/
26        install pxe/*.py pxe/{addsystem,dpysystem,nextboot,syncbootnames,delsystem} $(DESTDIR)$(libdir)/pxe/
27        install tester/*.py tester/{dpytest,nexttest,synctestnames} $(DESTDIR)$(libdir)/tester/
28
29dist: clean
30        cd ..; tar jcvf pxemngr-$(VERSION).tar.bz2  --exclude .git --exclude pxe.db pxemngr
31
32clean:
33        find . -name '*~' -o -name '*.pyc'|xargs rm -f
34
35# Makefile ends here
Note: See TracBrowser for help on using the browser.