summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 56c69ae32b68695ae632d5489a3cab0b74ffbe4b (plain)
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
31
32
33
34
35
package = drakpxelinux
version = 1.12

prefix  = /usr/local/
distdir =

list  = default \
        deployd.sh \
        deployd.xinetd \
        deploy_get_autoinst.pl \
        deploy_get_autoinst.xinetd \
        drakpxelinux.pl

subdir = po

files = $(subdir) $(list) ChangeLog COPYING Makefile TODO

clean:
	rm -f *~ \#*\#
	rm -f $(package)-*.tar.xz
	rm -fr $(package)-$(version)
	for d in $(subdir); do (cd $$d ; make $@ ); done

dist: 
	@git archive --prefix=$(package)-$(version)/ HEAD | xz  > $(package)-$(version).tar.xz

install:
	install -d $(distdir)/usr/{sbin/,share/drakpxelinux/}
	install -d $(distdir)/etc/xinetd.d
	install -m755 drakpxelinux.pl $(distdir)/usr/sbin/drakpxelinux
	install -m755 deployd.sh $(distdir)/usr/sbin/deployd
	install -m755 deploy_get_autoinst.pl $(distdir)/usr/sbin/deploy_get_autoinst.pl
	install -m644 deployd.xinetd $(distdir)/etc/xinetd.d/deployd
	install -m644 deploy_get_autoinst.xinetd $(distdir)/etc/xinetd.d/deploy_get_autoinst
	for d in $(subdir); do ( cd $$d ; make $@ ) ; done