aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 8 insertions, 12 deletions
diff --git a/Makefile b/Makefile
index 2923441..4b4512a 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
NAME = monitor-edid
-VERSION = 3.2
+VERSION = 3.3
FILES = $(shell ls | grep -v CVS | grep -vF .tar)
SVNPATH = svn+ssh://svn.mageia.org/svn/soft/monitor-edid
@@ -48,20 +48,16 @@ endif
clean:
$(RM) $(TARGETS) *.a *.o *~
- rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.bz2
+ rm -rf $(NAME)-$(VERSION) $(NAME)-$(VERSION).tar.xz
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
-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)
+dist: dis
+dis: clean
+ @git archive --prefix=$(NAME)-$(VERSION)/ HEAD | xz > $(NAME)-$(VERSION).tar.xz;
+ $(info $(NAME)-$(VERSION).tar.xz is ready)
-
-svntag:
- svn cp -m 'version $(VERSION)' $(SVNPATH)/trunk $(SVNPATH)/tags/v$(VERSION)
+tag:
+ git tag $(VERSION)