aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@mandriva.org>2002-01-30 13:37:15 +0000
committerChmouel Boudjnah <chmouel@mandriva.org>2002-01-30 13:37:15 +0000
commit95a92d1f3df1ecffb96456575126caed1b74bb15 (patch)
treeeff0c813ea22e390783ed668abe97bf17bdcb392 /Makefile
parent4eed3b39a529d2b0cb8479a4fa9feee9bcbfe940 (diff)
downloadbootsplash-95a92d1f3df1ecffb96456575126caed1b74bb15.tar
bootsplash-95a92d1f3df1ecffb96456575126caed1b74bb15.tar.gz
bootsplash-95a92d1f3df1ecffb96456575126caed1b74bb15.tar.bz2
bootsplash-95a92d1f3df1ecffb96456575126caed1b74bb15.tar.xz
bootsplash-95a92d1f3df1ecffb96456575126caed1b74bb15.zip
Add Makefile and .spec
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile48
1 files changed, 48 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9daf96d
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,48 @@
+NAME=bootsplash
+VERSION := $(shell sed -n 's/%define version //p' < $(NAME).spec)
+RELEASE := $(shell sed -n 's/%define release //p' < $(NAME).spec)
+RELTAG := $(shell echo "V$(VERSION)_$(RELEASE)" | tr -- '-.' '__')
+
+SUBDIRS=scripts
+DATADIRS=images cfg
+
+prefix=/
+sharedir=/usr/share
+
+all: check
+
+check:
+ @for i in $(SUBDIRS);do make -C $$i check;done
+
+install:
+ @mkdir -p $(prefix)$(sharedir)/bootsplash/
+ @for i in $(SUBDIRS);do make -C $$i install;done
+ @for i in $(DATADIRS);do cp -a $$i $(prefix)$(sharedir)/bootsplash/;done
+
+dis: clean
+ rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar*
+ mkdir -p $(NAME)-$(VERSION)
+ find . -not -name "$(NAME)-$(VERSION)"|cpio -pd $(NAME)-$(VERSION)/
+ find $(NAME)-$(VERSION) -type d -name CVS -o -name .cvsignore -o -name unused |xargs rm -rf
+ tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION)
+ bzip2 -9f ../$(NAME)-$(VERSION).tar
+ rm -rf $(NAME)-$(VERSION)
+
+clean:
+ @for i in $(SUBDIRS);do make -C $$i clean;done
+ rm -f *~ \#*\#
+
+changelog: ../common/username
+ ( cvs2cl -U ../common/username -I ChangeLog ; \
+ rm -f ChangeLog.bak ; \
+ cvs commit -m "Generated by cvs2cl the `date '+%c'`" ChangeLog ; \
+ )
+
+cvstag:
+ cvs commit
+ cvs tag $(RELTAG)
+
+rpm: changelog cvstag dis ../$(NAME)-$(VERSION).tar.bz2 $(RPM)
+ cp -f ../$(NAME)-$(VERSION).tar.bz2 $(RPM)/SOURCES
+ -rpm -ba --clean $(NAME).spec
+ rm -f ../$(NAME)-$(VERSION).tar.bz2