Mercurial > projects > pk-update-icon
comparison Makefile @ 36:82a31628a26d
Use pax to generate tarballs
Use pax instead of tar to generate tarballs which allows direct manipulation of
paths without any hacks.
author | Guido Berhoerster <gber@opensuse.org> |
---|---|
date | Fri, 07 Feb 2014 18:10:41 +0100 |
parents | b84b4ae937e3 |
children | 7e44a0a8dc2c |
comparison
equal
deleted
inserted
replaced
35:b84b4ae937e3 | 36:82a31628a26d |
---|---|
30 # X makedepend | 30 # X makedepend |
31 #MAKEDEPEND.c = makedepend -f- -Y -- $(CFLAGS) $(CPPFLAGS) -- | 31 #MAKEDEPEND.c = makedepend -f- -Y -- $(CFLAGS) $(CPPFLAGS) -- |
32 INSTALL := install | 32 INSTALL := install |
33 INSTALL.exec := $(INSTALL) -D -m 0755 | 33 INSTALL.exec := $(INSTALL) -D -m 0755 |
34 INSTALL.data := $(INSTALL) -D -m 0644 | 34 INSTALL.data := $(INSTALL) -D -m 0644 |
35 TAR := tar | 35 PAX := pax |
36 GZIP := gzip | 36 GZIP := gzip |
37 SED := sed | 37 SED := sed |
38 MSGFMT := msgfmt | 38 MSGFMT := msgfmt |
39 INTLTOOL_UPDATE := intltool-update | 39 INTLTOOL_UPDATE := intltool-update |
40 INTLTOOL_MERGE := intltool-merge | 40 INTLTOOL_MERGE := intltool-merge |
106 | 106 |
107 clobber: clean | 107 clobber: clean |
108 rm -f $(patsubst %.o,%.d,$(OBJS)) | 108 rm -f $(patsubst %.o,%.d,$(OBJS)) |
109 | 109 |
110 dist: clobber | 110 dist: clobber |
111 rm -f $(DISTNAME) | 111 $(PAX) -w -x ustar -s ',.*/\..*,,' -s ',./[^/]*\.tar\.gz,,' \ |
112 ln -s -f . $(DISTNAME) | 112 -s ',\./,$(DISTNAME)/,' . | $(GZIP) > $(DISTNAME).tar.gz |
113 $(TAR) cv $(DISTNAME)/* | $(GZIP) > $(DISTNAME).tar.gz | |
114 | 113 |
115 -include $(patsubst %.o,%.d,$(OBJS)) | 114 -include $(patsubst %.o,%.d,$(OBJS)) |