aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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)