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