| 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 | |
|---|
| 10 | VERSION=0.7.2 |
|---|
| 11 | |
|---|
| 12 | bindir=/usr/bin |
|---|
| 13 | libdir=/usr/share/pxemngr |
|---|
| 14 | etcdir=/etc |
|---|
| 15 | |
|---|
| 16 | all: |
|---|
| 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 | |
|---|
| 21 | install: |
|---|
| 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 | |
|---|
| 29 | dist: clean |
|---|
| 30 | cd ..; tar jcvf pxemngr-$(VERSION).tar.bz2 --exclude .git --exclude pxe.db pxemngr |
|---|
| 31 | |
|---|
| 32 | clean: |
|---|
| 33 | find . -name '*~' -o -name '*.pyc'|xargs rm -f |
|---|
| 34 | |
|---|
| 35 | # Makefile ends here |
|---|