From d1ca189c474915a66264af45d25264037f1a4674 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 26 Sep 2007 09:47:43 +0000 Subject: get rid of spec and rpm targets in Makefile --- Makefile | 37 ++++++++++--------------------------- 1 file changed, 10 insertions(+), 27 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d6cec73..e49ba69 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ -PACKAGE = monitor-edid -VERSION = $(shell rpm -q --qf "%{VERSION}\n" --specfile $(PACKAGE).spec | head -n 1) +NAME = monitor-edid +VERSION = 1.11 FILES = $(shell ls | grep -v CVS | grep -vF .tar) ARCH := $(patsubst i%86,i386,$(shell uname -m)) @@ -42,33 +42,16 @@ clean: $(MAKE) -C int10 clean $(MAKE) -C x86emu clean $(RM) $(TARGETS) *.a *.o *~ - rm -rf $(PACKAGE)-$(VERSION) $(PACKAGE)-$(VERSION).tar.bz2 + rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.bz2 %.o: %.c $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@ -# rules to build a test rpm - -localsrpm: localdist - rpm -ts $(PACKAGE)-$(VERSION).tar.bz2 - -localrpm: localdist buildrpm - -localdist: cleandist dir localcopy tar - -cleandist: clean - -dir: - mkdir $(PACKAGE)-$(VERSION) - -localcopy: - tar c $(FILES) | tar x -C $(PACKAGE)-$(VERSION) - -tar: - tar cvf $(PACKAGE)-$(VERSION).tar $(PACKAGE)-$(VERSION) - bzip2 -9vf $(PACKAGE)-$(VERSION).tar - rm -rf $(PACKAGE)-$(VERSION) - -buildrpm: - rpm -ta $(PACKAGE)-$(VERSION).tar.bz2 +dis: + rm -rf $(NAME)-$(VERSION) ../$(NAME)-$(VERSION).tar* + svn export -q -rBASE . $(NAME)-$(VERSION) + find $(NAME)-$(VERSION) -name .cvsignore |xargs rm -rf + tar cf ../$(NAME)-$(VERSION).tar $(NAME)-$(VERSION) + bzip2 -9f ../$(NAME)-$(VERSION).tar + rm -rf $(NAME)-$(VERSION) -- cgit v1.2.1