2011-12-01 05:06:11 +00:00
|
|
|
package = nyancat
|
2014-04-30 23:31:10 +00:00
|
|
|
version = 1.4.2
|
2011-12-01 05:06:11 +00:00
|
|
|
tarname = $(package)
|
|
|
|
distdir = $(tarname)-$(version)
|
|
|
|
|
2011-12-01 06:42:12 +00:00
|
|
|
all clean check nyancat:
|
2011-12-01 05:06:11 +00:00
|
|
|
cd src && $(MAKE) $@
|
|
|
|
|
|
|
|
dist: $(distdir).tar.gz
|
|
|
|
|
|
|
|
$(distdir).tar.gz: $(distdir)
|
|
|
|
tar chof - $(distdir) | gzip -9 -c > $@
|
|
|
|
rm -rf $(distdir)
|
|
|
|
|
|
|
|
$(distdir): FORCE
|
|
|
|
mkdir -p $(distdir)/src
|
|
|
|
cp Makefile $(distdir)
|
|
|
|
cp src/Makefile $(distdir)/src
|
|
|
|
cp src/nyancat.c $(distdir)/src
|
2011-12-04 01:00:34 +00:00
|
|
|
cp src/animation.h $(distdir)/src
|
|
|
|
cp src/telnet.h $(distdir)/src
|
2011-12-01 05:06:11 +00:00
|
|
|
|
|
|
|
FORCE:
|
|
|
|
-rm $(distdir).tar.gz >/dev/null 2>&1
|
|
|
|
-rm -rf $(distdir) >/dev/null 2>&1
|
|
|
|
|
|
|
|
distcheck: $(distdir).tar.gz
|
|
|
|
gzip -cd $(distdir).tar.gz | tar xvf -
|
|
|
|
cd $(distdir) && $(MAKE) all
|
|
|
|
cd $(distdir) && $(MAKE) check
|
|
|
|
cd $(distdir) && $(MAKE) clean
|
|
|
|
rm -rf $(distdir)
|
|
|
|
@echo "*** Package $(distdir).tar.gz is ready for distribution."
|
|
|
|
|
2012-03-23 22:59:35 +00:00
|
|
|
install: all
|
|
|
|
install src/nyancat /usr/bin/${package}
|
2012-11-13 17:17:06 +00:00
|
|
|
gzip -9 -c < nyancat.1 > /usr/share/man/man1/nyancat.1.gz
|
2012-03-23 22:59:35 +00:00
|
|
|
|
|
|
|
.PHONY: FORCE all clean check dist distcheck install
|