projects/pk-update-icon

changeset 22:b18c70b2a6ca

add dist target to Makefile
author Guido Berhoerster <guido@berhoerster.name>
date Sat Oct 22 10:15:09 2011 +0200 (2011-10-22)
parents 6b7f2c8b90ec
children 6d0f1f6c22e8
files Makefile
line diff
     1.1 --- a/Makefile	Thu Oct 20 15:51:12 2011 +0200
     1.2 +++ b/Makefile	Sat Oct 22 10:15:09 2011 +0200
     1.3 @@ -1,6 +1,8 @@
     1.4  INSTALL :=	install
     1.5  INSTALL.exec :=	$(INSTALL) -D -m 0755
     1.6  INSTALL.data :=	$(INSTALL) -D -m 0644
     1.7 +TAR :=		tar
     1.8 +GZIP :=		gzip
     1.9  SED :=		sed
    1.10  MSGFMT :=	msgfmt
    1.11  INTLTOOL_UPDATE :=	intltool-update
    1.12 @@ -18,6 +20,7 @@
    1.13  PACKAGE =	pk-update-icon
    1.14  APP_NAME =	org.opensuse.pk-update-icon
    1.15  VERSION =	0.1
    1.16 +DISTNAME :=	$(PACKAGE)-$(VERSION)
    1.17  OBJS =		main.o pkui-icon.o pkui-backend.o
    1.18  AUTOSTART_FILE =	$(PACKAGE).desktop
    1.19  MOFILES :=	$(patsubst %.po,%.mo,$(wildcard po/*.po))
    1.20 @@ -32,7 +35,7 @@
    1.21  
    1.22  .DEFAULT_TARGET = all
    1.23  
    1.24 -.PHONY: all clean clobber install
    1.25 +.PHONY: all clean clobber dist install
    1.26  
    1.27  all: $(PACKAGE) $(MOFILES) $(AUTOSTART_FILE)
    1.28  
    1.29 @@ -80,4 +83,9 @@
    1.30  clobber: clean
    1.31  	rm -f *.P
    1.32  
    1.33 +dist: clobber
    1.34 +	rm -f $(DISTNAME)
    1.35 +	ln -s -f . $(DISTNAME)
    1.36 +	$(TAR) cv $(DISTNAME)/* | $(GZIP) > $(DISTNAME).tar.gz
    1.37 +
    1.38  -include $(patsubst %.o,%.P,$(OBJS))