aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-26 09:47:43 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-26 09:47:43 +0000
commitd1ca189c474915a66264af45d25264037f1a4674 (patch)
treef921a20ccf17e53b3c3ce26dfa430c4aaff8d45f /Makefile
parent61ad01fab2ccb41f310f09d74823827778c34e55 (diff)
downloadmonitor-edid-d1ca189c474915a66264af45d25264037f1a4674.tar
monitor-edid-d1ca189c474915a66264af45d25264037f1a4674.tar.gz
monitor-edid-d1ca189c474915a66264af45d25264037f1a4674.tar.bz2
monitor-edid-d1ca189c474915a66264af45d25264037f1a4674.tar.xz
monitor-edid-d1ca189c474915a66264af45d25264037f1a4674.zip
get rid of spec and rpm targets in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
1 files changed, 10 insertions, 27 deletions
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)