Created
November 8, 2016 15:14
-
-
Save philmb3487/75908a67e65e43f058d39d7b62e866b3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package = nyancat | |
version = 1.5.1 | |
tarname = $(package) | |
distdir = $(tarname)-$(version) | |
all clean check nyancat: | |
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 | |
cp src/animation.h $(distdir)/src | |
cp src/telnet.h $(distdir)/src | |
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." | |
install: all | |
install -D src/nyancat ${DESTDIR}/usr/bin/${package} | |
install -D nyancat.1 ${DESTDIR}/usr/share/man/man1/nyancat.1 | |
.PHONY: FORCE all clean check dist distcheck install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tix.version=1 | |
tix.class=srctix | |
pkg.name=nyancat | |
pkg.build-libraries=libcurses | |
pkg.build-system=makefile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment