diff options
Diffstat (limited to 'cpgx/Makefile')
-rw-r--r-- | cpgx/Makefile | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/cpgx/Makefile b/cpgx/Makefile index 94c3266..596e03e 100644 --- a/cpgx/Makefile +++ b/cpgx/Makefile @@ -27,33 +27,5 @@ clean: rm -f *.o cpgx install: all - install cpgx $(DESTDIR)/usr/bin + install -D cpgx $(DESTDIR)/usr/bin -VERSION := $(shell cat VERSION) - -ifdef DIST - RPMDEFS := -D "dist $(DIST)" -endif - -tarfiles := cpgx.c list.h cpgx.spec Makefile VERSION -tarball := cpgx-$(VERSION).tar.gz - -# to release tarball: -# edit VERSION with new number and without -git -# commit VERSION change -# make tarball, sprm, rpm -# edit VERSION adding -git -# commit VERSION change -# push - -$(tarball): $(tarfiles) - -$(RM) $@ - git archive --format=tar --prefix=cpgx-$(VERSION)/ HEAD^{tree} | gzip > $@ - -tarball: $(tarball) - -rpm: $(tarball) $(tarfiles) - rpmbuild -ta $< $(RPMDEFS) - -srpm: $(tarball) $(tarfiles) - rpmbuild -ts $< $(RPMDEFS) |