summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorKamil Rytarowski <kamil@mageia.org>2012-04-25 13:00:41 +0000
committerKamil Rytarowski <kamil@mageia.org>2012-04-25 13:00:41 +0000
commitd4f1921fba9eec7ffa76686417c6ba04c69489c5 (patch)
tree079f372ae65b5a711b34ae85e90434819fc14759 /Makefile
parentc1e1e5df072e20542c35646237d663a03fa8c9c2 (diff)
downloaddrakpxelinux-d4f1921fba9eec7ffa76686417c6ba04c69489c5.tar
drakpxelinux-d4f1921fba9eec7ffa76686417c6ba04c69489c5.tar.gz
drakpxelinux-d4f1921fba9eec7ffa76686417c6ba04c69489c5.tar.bz2
drakpxelinux-d4f1921fba9eec7ffa76686417c6ba04c69489c5.tar.xz
drakpxelinux-d4f1921fba9eec7ffa76686417c6ba04c69489c5.zip
- simplify, remove rules to build test and distributable rpms
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile92
1 files changed, 32 insertions, 60 deletions
diff --git a/Makefile b/Makefile
index 7cabdef..b9ba542 100644
--- a/Makefile
+++ b/Makefile
@@ -1,72 +1,44 @@
-PACKAGE=drakpxelinux
-VERSION=1.2.2
-TAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
+package = drakpxelinux
+version = 1.2.2
-RPMOPT = --clean --rmspec
+prefix = /usr/local/
+distdir =
-#SUBDIRS = po
-localedir = $(prefix)/usr/share/locale
+list = default \
+ deployd.sh \
+ deployd.xinetd \
+ deploy_get_autoinst.pl \
+ deploy_get_autoinst.xinetd \
+ drakpxelinux.pl
-override CFLAGS += -DPACKAGE=\"$(PACKAGE\" -DLOCALEDIR=\"$(localedir)\"
+subdir = po
-all: drakpxelinux.pl
-# for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
+files = $(subdir) $(list) ChangeLog COPYING Makefile TODO
clean:
- $(MAKE) -C po $@
- rm -f core .#*[0-9]
- rm -rf *~ *.tar.bz2
- rm -rf ../$(PACKAGE)-$(VERSION)
-# for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
-
-install: all
- $(MAKE) -C po $@
- install -d $(RPM_BUILD_ROOT)/usr/{sbin/,share/drakpxelinux/}
- install -d $(RPM_BUILD_ROOT)/etc/xinetd.d
- install -m755 $(PACKAGE).pl $(RPM_BUILD_ROOT)/usr/sbin/drakpxelinux
- install -m755 deployd.sh $(RPM_BUILD_ROOT)/usr/sbin/deployd
- install -m755 deploy_get_autoinst.pl $(RPM_BUILD_ROOT)/usr/sbin/deploy_get_autoinst.pl
- install -m644 deployd.xinetd $(RPM_BUILD_ROOT)/etc/xinetd.d/deployd
- install -m644 deploy_get_autoinst.xinetd $(RPM_BUILD_ROOT)/etc/xinetd.d/deploy_get_autoinst
-# for d in $(SUBDIRS); do ( cd $$d ; make $@ ) ; done
-
-# rules to build a test rpm
-
-localrpm: localdist buildrpm
-
-localdist: cleandist dir localcopy tar
-
-cleandist:
- rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2
+ rm -f *~ \#*\#
+ rm -f $(package)-*.tar.xz
+ rm -fr $(package)-$(version)
+ for d in $(subdir); do (cd $$d ; make $@ ); done
dir:
- mkdir $(PACKAGE)-$(VERSION)
+ mkdir $(package)-$(version)
localcopy:
- rm -fr $(PACKAGE)-$(VERSION)
- svn export -q -rBASE . $(PACKAGE)-$(VERSION)
+ tar c --exclude=.svn $(files) | tar x -C $(package)-$(version)
tar:
- tar cfj $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION)
- rm -rf ../$(PACKAGE)-$(VERSION)
-
-buildrpm:
- rpm -ta $(RPMOPT) $(PACKAGE)-$(VERSION).tar.bz2
-
-# rules to build a distributable rpm
-
-rpm: changelog cvstag dist buildrpm
-
-dist: cleandist dir export tar
-
-export:
- cvs export -d $(PACKAGE)-$(VERSION) -r $(TAG) $(PACKAGE)
-
-cvstag:
- cvs tag $(CVSTAGOPT) $(TAG)
-
-log: changelog
-changelog: ../common/username
- svn2cl --accum --authors ../../soft/common/username.xml
- rm -f ChangeLog.bak
- svn commit -m "Generated by cvs2cl the `date '+%d_%b'`" ChangeLog
+ 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 \ No newline at end of file