summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: b9ba542d7878d69a29bbc1f5105b43d3b7fac7ca (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
36
37
38
39
40
41
42
43
44
package = drakpxelinux
version = 1.2.2

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

dir:
	mkdir $(package)-$(version)

localcopy:
	tar c --exclude=.svn $(files) | tar x -C $(package)-$(version)

tar:
	tar cvYf $(package)-$(version).tar.xz $(package)-$(version)
	rm -fr $(package)-$(version)

dist: clean dir localcopy tar

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 $(subdirs); do ( cd $$d ; make $@ ) ; done