blob: 66978602808d550a634feeb54a32eb1ea18d1c57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
diff --git Makefile Makefile
index 9ac517f..862f69b 100644
--- Makefile
+++ Makefile
@@ -3,33 +3,12 @@ version = 0.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)
+SRCDIR = src
-$(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
+all clean check nyancat:
+ cd $(SRCDIR) && $(MAKE) $@
-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 :
+ install -m 0755 $(SRCDIR)/nyancat /usr/bin/nyancat
-.PHONY: FORCE all clean check dist distcheck
+.PHONY: all clean check install
|